Skip to content

Commit 2bf3607

Browse files
committed
rebase cleanup: drop duplicate isSparkAtLeast helper now in master via #38324
1 parent 467897d commit 2bf3607

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

runners/spark/spark_runner.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ applyJavaNature(
4747

4848
description = "Apache Beam :: Runners :: Spark $spark_version"
4949

50-
// Numeric version comparison (lexicographic string compare was fragile — e.g. "3.10.0" < "3.5.0").
51-
def isSparkAtLeast = { String minVersion ->
52-
def parts = spark_version.tokenize('.-').findAll { it.isInteger() }*.toInteger()
53-
def minParts = minVersion.tokenize('.')*.toInteger()
54-
for (int i = 0; i < Math.min(parts.size(), minParts.size()); i++) {
55-
if (parts[i] != minParts[i]) return parts[i] > minParts[i]
56-
}
57-
return parts.size() >= minParts.size()
58-
}
59-
6050
/*
6151
* We need to rely on manually specifying these evaluationDependsOn to ensure that
6252
* the following projects are evaluated before we evaluate this project. This is because

0 commit comments

Comments
 (0)