Skip to content

Commit bbbc393

Browse files
committed
Setup parallel build and test
1 parent 17e2f56 commit bbbc393

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,8 @@ tasks {
159159
withType<KotlinCompile> {
160160
dependsOn("generateMetadataBuildConfigKotlin")
161161
}
162+
}
163+
164+
tasks.withType<Test> {
165+
maxParallelForks = Runtime.getRuntime().availableProcessors().minus(1).coerceAtLeast(1)
162166
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
kotlin.code.style=official
1+
kotlin.code.style=official
2+
org.gradle.parallel=true

0 commit comments

Comments
 (0)