From 547abf6991c3ccaa7be7aac5ebeb526165dca79d Mon Sep 17 00:00:00 2001
From: ChenZhangg <32891042+ChenZhangg@users.noreply.github.com>
Date: Mon, 18 Oct 2021 15:40:48 +0800
Subject: [PATCH] Improve GRADLE build Performance

---
 build.gradle | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/build.gradle b/build.gradle
index 1847bb489..ea3f7a731 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,4 +16,22 @@
  * You should have received a copy of the GNU General Public License along
  * with this program. If not, see <http://www.gnu.org/licenses/>.
  */
+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
+    }
+
+}
-- 
GitLab