File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
2
- # This is required to provide enough memory for the Minecraft decompilation process.
3
- org.gradle.jvmargs =-Xmx3G
2
+ # This is required to provide enough memory for recompilation
3
+ # (see also projects/neoforged/build.gradle, where the compile tasks is set to have enough memory when forked)
4
+ org.gradle.jvmargs =-Xmx2G
4
5
org.gradle.daemon =true
5
6
org.gradle.parallel =true
6
7
org.gradle.caching =true
Original file line number Diff line number Diff line change @@ -222,6 +222,11 @@ generateAccessTransformers {
222
222
)
223
223
}
224
224
225
+ tasks. withType(JavaCompile . class). configureEach {
226
+ // Increase memory used during compilation, to avoid OutOfMemoryErrors
227
+ options. forkOptions. memoryMaximumSize = ' 2g'
228
+ }
229
+
225
230
tasks. withType(Javadoc . class). configureEach {
226
231
options. tags = [
227
232
' apiNote:a:<em>API Note:</em>' ,
You can’t perform that action at this time.
0 commit comments