Skip to content

Commit fc6773a

Browse files
fix: increase Java compiler heap memory for java-8 build to prevent OutOfMemoryError
Co-authored-by: jiajingjing2016 <137744850+jiajingjing2016@users.noreply.github.com>
1 parent 51cf559 commit fc6773a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java-8/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ java {
2424
withSourcesJar()
2525
}
2626

27+
tasks.withType(JavaCompile).configureEach {
28+
options.fork = true
29+
options.forkOptions.memoryMaximumSize = '2g'
30+
}
31+
2732
tasks.jar {
2833
zip64(true)
2934
}

0 commit comments

Comments
 (0)