diff --git a/build.gradle b/build.gradle index 832f346..3c332c1 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,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() } @@ -21,4 +29,4 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir -} +} \ No newline at end of file