diff --git a/build.gradle b/build.gradle index aa0f2da..2aac6b5 100644 --- a/build.gradle +++ b/build.gradle @@ -30,3 +30,14 @@ def gitDescribe() { def static gitVersion() { '0.10.1' } + +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 + } +}