mirror of
https://github.com/neoforged/NeoForge.git
synced 2026-10-12 02:19:42 +00:00
Backport to 1.20.6: Increase memory used for forked compiler (#3445)
Co-authored-by: sciwhiz12 <[email protected]>
This commit is contained in:
co-authored by
sciwhiz12
parent
26f66b8c47
commit
bf18eb3bce
+3
-2
@@ -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
|
||||
|
||||
@@ -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>',
|
||||
|
||||
Reference in New Issue
Block a user