Using the Paper API

The Paper API is available from the PaperMC Maven repository. This tool can provide the source code, compiled jars, and javadocs to your project.

Repository

Add this to your pom.xml:

<repository>
    <id>papermc</id>
    <url>https://papermc.io/repo/repository/maven-public/</url>
</repository>
Dependency

Then, add this:

<dependency>
    <groupId>com.destroystokyo.paper</groupId>
    <artifactId>paper-api</artifactId>
    <version></version>
    <scope>provided</scope>
</dependency>
Repository

Add this to your build.gradle:

repositories {
    maven { url "https://papermc.io/repo/repository/maven-public/" }
}
Dependency

Then, add this:

dependencies {
    compileOnly "com.destroystokyo.paper:paper-api:"
}
Repository

Add this to your build.gradle.kts:

repositories {
    maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
}
Dependency

Then, add this:

dependencies {
    compileOnly("com.destroystokyo.paper:paper-api:")
}