mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Bump server compile memory
This commit is contained in:
@@ -230,6 +230,11 @@ tasks.compileTestJava {
|
|||||||
options.compilerArgs.add("-parameters")
|
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) {
|
val scanJarForBadCalls by tasks.registering(io.papermc.paperweight.tasks.ScanJarForBadCalls::class) {
|
||||||
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
|
badAnnotations.add("Lio/papermc/paper/annotation/DoNotUse;")
|
||||||
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
||||||
|
Reference in New Issue
Block a user