fix runServer tasks

This commit is contained in:
Jake Potrebic 2023-02-27 16:30:33 -08:00
parent dbe5184584
commit 6910253909

View file

@ -138,9 +138,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ val memoryGb = providers.gradleProperty("paper.runMemoryGb").getOrElse("2")
+ val modifiedJvmArgs = jvmArgs ?: arrayListOf()
+ modifiedJvmArgs.addAll(listOf("-Xms${memoryGb}G", "-Xmx${memoryGb}G"))
+ jvmArgs = modifiedJvmArgs
+ minHeapSize = "${memoryGb}G"
+ maxHeapSize = "${memoryGb}G"
+
+ doFirst {
+ workingDir.mkdirs()