diff --git a/build.gradle b/build.gradle index 0976730..202b2b0 100755 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,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() maven { @@ -20,4 +28,4 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir -} +} \ No newline at end of file