Skip to content

Commit

Permalink
Improve GRADLE build Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenZhangg committed Nov 24, 2021
1 parent d4a10b6 commit ba9bfb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ buildscript {
}

allprojects {
tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
if (!project.hasProperty("createReports")) {
reports.html.required = false
reports.junitXml.required = false
}
}
repositories {
jcenter()
google()
Expand Down

0 comments on commit ba9bfb3

Please sign in to comment.