Bump server compile memory

This commit is contained in:
Bjarne Koll
2025-06-04 17:31:22 +02:00
parent ec548f93dd
commit 66272e6aa3

View File

@@ -230,6 +230,11 @@ tasks.compileTestJava {
options.compilerArgs.add("-parameters")
}
// Bump compile tasks to 1GB memory to avoid OOMs
tasks.withType<JavaCompile>().configureEach {
options.forkOptions.memoryMaximumSize = "1G"
}
val scanJarForBadCalls by tasks.registering(io.papermc.paperweight.tasks.ScanJarForBadCalls::class) {
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
jarToScan.set(tasks.jar.flatMap { it.archiveFile })