Run Paper
Run Paper is a Gradle plugin which adds a task to automatically download and run a Paper Minecraft server along with your plugin built by Gradle.
Usage
Apply the plugin in your project buildscript.
plugins {
// Apply the plugin
id("xyz.jpenilla.run-paper") version "1.0.2"
}
tasks {
runServer {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
minecraftVersion("1.16.5")
}
}
Now you can run a Paper server simply by invoking the runServer
task!
Check out the wiki for more detailed usage information.