Skip to content

Commit 1bc74e1

Browse files
committed
modify build.gradle
1 parent 2ee2950 commit 1bc74e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ if (JavaVersion.current().isJava8Compatible()) {
3131
}
3232

3333
allprojects {
34-
34+
tasks.withType(Test).configureEach {
35+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
36+
if (!project.hasProperty("createReports")) {
37+
reports.html.required = false
38+
reports.junitXml.required = false
39+
}
40+
}
3541
apply plugin: "jacoco"
3642

3743
jacoco {

0 commit comments

Comments
 (0)