From b7e3658d48fe0ca1443012661401e9eae48f3415 Mon Sep 17 00:00:00 2001 From: shisheng-1 <240274530@qq.com> Date: Fri, 12 Nov 2021 23:33:11 +0800 Subject: [PATCH] Improve GRADLE build Performance --- build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index 4c285e58..be461658 100644 --- a/build.gradle +++ b/build.gradle @@ -122,3 +122,14 @@ def configureMaven(project, projectName, projectDescription) { } } } + +allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } + +}