From 91bc1c61cf1186c68ece3b832bf8f180e762f123 Mon Sep 17 00:00:00 2001 From: Chen Zhang <340355960@qq.com> Date: Wed, 13 Oct 2021 16:55:27 +0800 Subject: [PATCH] Improve GRADLE build Performance --- build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build.gradle b/build.gradle index c06df431..8b501c77 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,23 @@ buildscript { } allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = 4 + } + + tasks.withType(Test).configureEach { + forkEvery = 100 + } + + tasks.withType(Test).configureEach { + reports.html.required = false + reports.junitXml.required = false + } + + tasks.withType(JavaCompile).configureEach { + options.incremental = true + } + repositories { jcenter() google()