diff --git a/build.gradle b/build.gradle index 57c36c18..22ecb8fa 100644 --- a/build.gradle +++ b/build.gradle @@ -31,7 +31,14 @@ if (JavaVersion.current().isJava8Compatible()) { } allprojects { - + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + forkEvery = 100 + } apply plugin: "jacoco" jacoco {