diff --git a/build.gradle b/build.gradle index cdd056e0f..04fcd0387 100644 --- a/build.gradle +++ b/build.gradle @@ -19,6 +19,15 @@ plugins { } 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 + } + repositories { mavenLocal() jcenter()