From f1179d49bdeef536d97e139ee7a3221331c0f332 Mon Sep 17 00:00:00 2001 From: ChenZhangg Date: Wed, 24 Nov 2021 15:52:19 +0800 Subject: [PATCH] modify build.gradle --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index e45be79e3a..33ba31e149 100644 --- a/build.gradle +++ b/build.gradle @@ -10,3 +10,12 @@ buildscript { classpath 'com.android.tools.build:gradle:1.0.0' } } +allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } +}