From 1878659be65edfa22b005193e3316834704d98d4 Mon Sep 17 00:00:00 2001 From: shisheng-1 <240274530@qq.com> Date: Sat, 13 Nov 2021 02:36:33 +0800 Subject: [PATCH] Improve GRADLE build Performance --- build.gradle | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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