minor paper-server build fixes and tweaks

This commit is contained in:
Jason Penilla 2024-12-15 16:59:39 -07:00
parent d98c8f9f5b
commit 3a82d04b7e
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -263,7 +263,7 @@ fun TaskContainer.registerRunTask(
name: String, name: String,
block: JavaExec.() -> Unit block: JavaExec.() -> Unit
): TaskProvider<JavaExec> = register<JavaExec>(name) { ): TaskProvider<JavaExec> = register<JavaExec>(name) {
group = "paper" group = "runs"
mainClass.set("org.bukkit.craftbukkit.Main") mainClass.set("org.bukkit.craftbukkit.Main")
standardInput = System.`in` standardInput = System.`in`
workingDir = rootProject.layout.projectDirectory workingDir = rootProject.layout.projectDirectory
@ -324,7 +324,7 @@ tasks.registerRunTask("runBundler") {
} }
tasks.registerRunTask("runReobfBundler") { tasks.registerRunTask("runReobfBundler") {
description = "Spin up a test server from the reobf bundler jar" description = "Spin up a test server from the reobf bundler jar"
classpath(rootProject.tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createReobfBundlerJar").flatMap { it.outputZip }) classpath(tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createReobfBundlerJar").flatMap { it.outputZip })
mainClass.set(null as String?) mainClass.set(null as String?)
} }
tasks.registerRunTask("runPaperclip") { tasks.registerRunTask("runPaperclip") {
@ -334,6 +334,6 @@ tasks.registerRunTask("runPaperclip") {
} }
tasks.registerRunTask("runReobfPaperclip") { tasks.registerRunTask("runReobfPaperclip") {
description = "Spin up a test server from the reobf Paperclip jar" description = "Spin up a test server from the reobf Paperclip jar"
classpath(rootProject.tasks.named<io.papermc.paperweight.tasks.CreatePaperclipJar>("createReobfPaperclipJar").flatMap { it.outputZip }) classpath(tasks.named<io.papermc.paperweight.tasks.CreatePaperclipJar>("createReobfPaperclipJar").flatMap { it.outputZip })
mainClass.set(null as String?) mainClass.set(null as String?)
} }