Skip to content

Apache Lucene open-source search software

LUCENE-9165: explicitly cast with the horrible groovy language so that numbers above 9 don't fail

Robert Muirf5e9bb949334
diff --git a/gradle/testing/defaults-tests.gradle b/gradle/testing/defaults-tests.gradle
index 81dbaf1bec0..a7d94658da0 100644
--- a/gradle/testing/defaults-tests.gradle
+++ b/gradle/testing/defaults-tests.gradle
@@ -41,7 +41,7 @@ allprojects {
if (verboseMode) {
maxParallelForks = 1
} else {
- maxParallelForks = propertyOrDefault("tests.jvms", (int) Math.max(1, Math.min(Runtime.runtime.availableProcessors() / 2.0, 4.0)))
+ maxParallelForks = propertyOrDefault("tests.jvms", (int) Math.max(1, Math.min(Runtime.runtime.availableProcessors() / 2.0, 4.0))) as Integer
}
workingDir testsCwd