diff --git a/build.gradle b/build.gradle index 1baae35d0..bb9119956 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,7 @@ plugins { def jarVersion = "2.17.0" +def isDevLocal = System.getenv("DEV_LOCAL") == "yes" def isRelease = System.getenv("BUILD_EVENT") == "release" def bs = System.getenv("BRANCH_SNAPSHOT") def snap = bs == null || bs.equals("") ? "-SNAPSHOT" : "." + bs + "-SNAPSHOT" @@ -84,7 +85,7 @@ test { maxFailures = 5 maxRetries = 5 } - maxParallelForks = Runtime.runtime.availableProcessors() + maxParallelForks = isDevLocal ? Runtime.runtime.availableProcessors() : 1 } javadoc {