change generate-defaults.gradle not to cap testsJvms at 4

This commit is contained in:
Robert Muir 2020-01-24 08:49:01 -05:00
parent b283b8df62
commit 4d61e4aaab
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
1 changed files with 3 additions and 3 deletions

View File

@ -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) {
}
}
}
}
}