diff --git a/paper-server/build.gradle.kts b/paper-server/build.gradle.kts index 7a5f80c517..f9bedbc873 100644 --- a/paper-server/build.gradle.kts +++ b/paper-server/build.gradle.kts @@ -230,6 +230,11 @@ tasks.compileTestJava { options.compilerArgs.add("-parameters") } +// Bump compile tasks to 1GB memory to avoid OOMs +tasks.withType().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 })