diff --git a/build.gradle b/build.gradle index 93e7250..20cf446 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,14 @@ buildscript { } allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } + repositories { jcenter() google() @@ -24,4 +32,4 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir -} +} \ No newline at end of file