diff --git a/build.gradle b/build.gradle index 4c285e58..be461658 100644 --- a/build.gradle +++ b/build.gradle @@ -122,3 +122,14 @@ def configureMaven(project, projectName, projectDescription) { } } } + +allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } + +}