Skip to content

Commit d654aad

Browse files
committed
Improve GRADLE build Performance
1 parent cf89cf7 commit d654aad

1 file changed

Lines changed: 32 additions & 15 deletions

File tree

build.gradle

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2-
buildscript {
3-
repositories {
4-
jcenter()
5-
}
6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.2.2'
8-
}
9-
}
10-
11-
allprojects {
12-
repositories {
13-
jcenter()
14-
}
15-
}
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:2.2.2'
8+
}
9+
}
10+
11+
allprojects {
12+
tasks.withType(Test).configureEach {
13+
maxParallelForks = 4
14+
}
15+
16+
tasks.withType(Test).configureEach {
17+
forkEvery = 100
18+
}
19+
20+
tasks.withType(Test).configureEach {
21+
reports.html.required = false
22+
reports.junitXml.required = false
23+
}
24+
25+
tasks.withType(JavaCompile).configureEach {
26+
options.incremental = true
27+
}
28+
29+
repositories {
30+
jcenter()
31+
}
32+
}

0 commit comments

Comments
 (0)