Backport to 1.20.6: Increase memory used for forked compiler (#3445)

Co-authored-by: sciwhiz12 <[email protected]>
This commit is contained in:
neoforged-automation[bot]
2026-08-30 23:51:09 +03:00
committed by GitHub
co-authored by sciwhiz12
parent 26f66b8c47
commit bf18eb3bce
2 changed files with 8 additions and 2 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
# This is required to provide enough memory for recompilation
# (see also projects/neoforged/build.gradle, where the compile tasks is set to have enough memory when forked)
org.gradle.jvmargs=-Xmx2G
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.caching=true
+5
View File
@@ -233,6 +233,11 @@ userdevProfile {
additionalTestDependencyArtifactCoordinate "net.neoforged:testframework:${project.version}"
}
tasks.withType(JavaCompile.class).configureEach {
// Increase memory used during compilation, to avoid OutOfMemoryErrors
options.forkOptions.memoryMaximumSize = '2g'
}
tasks.withType(Javadoc.class).configureEach {
options.tags = [
'apiNote:a:<em>API Note:</em>',