Skip to content

Commit 3a53ecf

Browse files
committed
Increase test heap to 2g for rewrite-gradle
The K2 compiler used for KTS parsing loads many JDK modules and consumes significant memory. The default test worker heap is insufficient, causing OutOfMemoryError on CI.
1 parent 19540ab commit 3a53ecf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rewrite-gradle/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ java {
8989
tasks.withType<Test>().configureEach {
9090
dependsOn(pluginLocalTestClasspath)
9191
systemProperty("org.openrewrite.gradle.local.use-embedded-classpath", pluginLocalTestClasspath.files.find { it.name == "test-manifest.txt" }!!.path)
92+
maxHeapSize = "2g"
9293
}
9394

9495
// This seems to be the only way to get the groovy compiler to emit java-8 compatible bytecode

0 commit comments

Comments
 (0)