Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ tasks.withType(Javadoc::class.java) {
}

tasks.test {
maxHeapSize = "2g" // Set max heap size to 2GB or adjust as necessary
maxHeapSize = "2g"
if (System.getenv("CI") != null) {
// 47 of the 267 test classes resolve Maven poms over the network, so forks idle on I/O;
// oversubscribing the runner's cores packs the remaining work more evenly across them.
maxParallelForks = Runtime.getRuntime().availableProcessors() * 3 / 2
maxHeapSize = "1500m"
}
}

tasks.withType<JavaCompile> {
Expand Down
Loading