From 1171bb9602b8a8fdb4795cba20344755e149f919 Mon Sep 17 00:00:00 2001 From: Karsten Thoms Date: Fri, 22 Mar 2019 15:50:51 +0100 Subject: [PATCH] Parallel test execution see https://guides.gradle.org/performance/#suggestions_for_java_projects Signed-off-by: Karsten Thoms --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 620bc559c..612b74670 100644 --- a/build.gradle +++ b/build.gradle @@ -57,3 +57,7 @@ task clean(type: Delete) { description 'Deletes the local repositories.' delete 'build' } + +tasks.withType(Test) { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 +}