Skip to content

Commit

Permalink
Improve GRADLE build Performance
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhang22 committed Oct 13, 2021
1 parent 2c8f649 commit ac191bb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@ buildscript {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}

allprojects {
tasks.withType(Test).configureEach {
maxParallelForks = 4
}

tasks.withType(Test).configureEach {
forkEvery = 100
}

tasks.withType(Test).configureEach {
reports.html.required = false
reports.junitXml.required = false
}

tasks.withType(JavaCompile).configureEach {
options.incremental = true
}

}

0 comments on commit ac191bb

Please sign in to comment.