Basic Usage - jpenilla/run-paper Wiki

Basic Usage

Apply the plugin in your project buildscript.

plugins {
  // Apply the plugin
  id("") 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.

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