diff --git a/build.gradle b/build.gradle index 1652f5af4..80b93168a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,14 @@ plugins { // BEGIN ALL PROJECTS // allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } + apply plugin: 'java' sourceCompatibility = JavaVersion.VERSION_1_8 @@ -366,4 +374,4 @@ project('kcbq-confluent') { } } } -// END INDIVIDUAL PROJECTS +// END INDIVIDUAL PROJECTS \ No newline at end of file