Skip to content

Commit 978ac03

Browse files
committed
Parallel UT runs
1 parent 480341f commit 978ac03

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gradle/common-android-library.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ tasks.withType(JavaCompile).configureEach {
1414
options.compilerArgs.add('-parameters')
1515
}
1616

17+
tasks.withType(Test).configureEach {
18+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
19+
}
20+
1721
def kotlinCompileClass = null
1822
try {
1923
kotlinCompileClass = Class.forName('org.jetbrains.kotlin.gradle.tasks.KotlinCompile')

0 commit comments

Comments
 (0)