From ba9bfb3bb9f30f238f08583b7244f1a9d74da201 Mon Sep 17 00:00:00 2001 From: ChenZhangg Date: Wed, 24 Nov 2021 14:19:58 +0800 Subject: [PATCH] Improve GRADLE build Performance --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index c06df431..0350d6f7 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,13 @@ 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() google()