You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2020/02/08 05:15:24 UTC

[groovy] 02/03: adopt Gradle recommended value for maxParallelForks

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit d3e69a611759dd655a1edf1ac419fe1ffec1f8f8
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sat Feb 8 15:14:42 2020 +1000

    adopt Gradle recommended value for maxParallelForks
---
 gradle/test.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle/test.gradle b/gradle/test.gradle
index 4d3d282..0069905 100644
--- a/gradle/test.gradle
+++ b/gradle/test.gradle
@@ -37,7 +37,7 @@ allprojects {
         systemProperties 'apple.awt.UIElement': 'true', 'javadocAssertion.src.dir': './src/main'
 
         forkEvery = 50
-        maxParallelForks = isRunningOnCI() ? 1 : Runtime.runtime.availableProcessors()
+        maxParallelForks = isRunningOnCI() ? 1 : Runtime.runtime.availableProcessors().intdiv(2) ?: 1
         scanForTestClasses = true
         ignoreFailures = false
         testLogging {