Basic Usage - jpenilla/run-paper Wiki

Basic Usage

Apply the plugin in your project buildscript.

plugins {
  // Apply the plugin
  id("xyz.jpenilla.run-paper") version "1.0.4"
}

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.17.1")
  }
}

Now you can run a Paper server simply by invoking the runServer task!