diff --git a/build.gradle b/build.gradle index 0ec80de..981344b 100644 --- a/build.gradle +++ b/build.gradle @@ -22,6 +22,14 @@ wrapper { } allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } + group = 'com.yahoo.parsec' apply plugin: 'java' @@ -146,4 +154,3 @@ coveralls { tasks.coveralls { dependsOn(jacocoRootReport) } -