Skip to content

Commit 1ee6735

Browse files
authored
fix: JVM OOM issues during gradle build (#28)
Enabling Async generates additional classes. The default max memory setting is set to 500MB which is insufficient for compilation. This configures a more liberal setting. tl;dr - async features are not generated due to falling back to older speakeasy versions.
1 parent 1de836f commit 1ee6735

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build-extras.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
// This file
1+
// This file
22
// * is referred to in an `apply from` command in `build.gradle`
33
// * can be used to customise `build.gradle`
44
// * is generated once and not overwritten in SDK generation updates
5+
6+
tasks.withType(JavaCompile).configureEach {
7+
options.fork = true
8+
options.forkOptions.jvmArgs = ['-Xmx2g', '-XX:MaxMetaspaceSize=1g']
9+
}

0 commit comments

Comments
 (0)