mirror of https://github.com/apache/lucene.git
change generate-defaults.gradle not to cap testsJvms at 4
This commit is contained in:
parent
b283b8df62
commit
4d61e4aaab
|
@ -13,11 +13,11 @@ def hasDefaults = rootProject.file("gradle.properties").exists()
|
|||
if (!hasDefaults) {
|
||||
configure(rootProject) {
|
||||
task setupLocalDefaultsOnce(type: GradleBuild) {
|
||||
// Approximate a common-sense default for running gradle with parallel
|
||||
// Approximate a common-sense default for running gradle/tests with parallel
|
||||
// workers: half the count of available cpus but not more than 12.
|
||||
def cpus = Runtime.runtime.availableProcessors()
|
||||
def maxWorkers = (int) Math.max(1d, Math.min(cpus * 0.5d, 12))
|
||||
def testsJvms = (int) Math.max(1d, Math.min(cpus * 0.5d, 4))
|
||||
def testsJvms = (int) Math.max(1d, Math.min(cpus * 0.5d, 12))
|
||||
|
||||
// Reuse the same set of parameters for the recursive invocation and apply
|
||||
// some of these eagerly.
|
||||
|
@ -71,4 +71,4 @@ if (!hasDefaults) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue