Skip to content

Commit fb9b4ab

Browse files
authored
Improve GRADLE build Performance (#388)
1 parent 02bc421 commit fb9b4ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ buildscript {
4141
}
4242

4343
allprojects {
44+
tasks.withType(Test).configureEach {
45+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
46+
if (!project.hasProperty("createReports")) {
47+
reports.html.required = false
48+
reports.junitXml.required = false
49+
}
50+
}
51+
4452
repositories {
4553
jcenter()
4654
google()
@@ -261,4 +269,3 @@ def customizePom(pom, title) {
261269
}
262270
}
263271
}
264-

0 commit comments

Comments
 (0)