Skip to content

Commit a7e7a0b

Browse files
authored
Improve GRADLE build Performance (#165)
1 parent 1699b26 commit a7e7a0b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

+11
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,14 @@ dependencies {
3434
testCompileOnly 'org.projectlombok:lombok:1.18.12'
3535
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
3636
}
37+
38+
allprojects {
39+
tasks.withType(Test).configureEach {
40+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
41+
if (!project.hasProperty("createReports")) {
42+
reports.html.required = false
43+
reports.junitXml.required = false
44+
}
45+
}
46+
47+
}

0 commit comments

Comments
 (0)