We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 467897d commit 2bf3607Copy full SHA for 2bf3607
1 file changed
runners/spark/spark_runner.gradle
@@ -47,16 +47,6 @@ applyJavaNature(
47
48
description = "Apache Beam :: Runners :: Spark $spark_version"
49
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
-
60
/*
61
* We need to rely on manually specifying these evaluationDependsOn to ensure that
62
* the following projects are evaluated before we evaluate this project. This is because
0 commit comments