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