plugins { id 'java' id 'io.papermc.paperweight.userdev' version "1.3.8" id 'xyz.jpenilla.run-paper' version "1.0.6" // Adds runServer and runMojangMappedServer tasks for testing } group = 'com.squidxtv' version = '${version}' repositories { mavenCentral() mavenLocal() maven { name = 'spigotmc-repo' url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' } maven { name = 'sonatype' url = 'https://oss.sonatype.org/content/groups/public/' } maven { name = 'papermc' url = "https://repo.papermc.io/repository/maven-public/" } } dependencies { compileOnly 'io.papermc.paper:paper-api:1.18.1-R0.1-SNAPSHOT' paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.1-R0.1-SNAPSHOT") compileOnly group: "com.comphenix.protocol", name: "ProtocolLib", version: "${protocollib_version}" implementation 'org.jetbrains:annotations:23.0.0' } tasks { // Configure reobfJar to run when invoking the build task assemble { dependsOn(reobfJar) } compileJava { // Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable. // See https://openjdk.java.net/jeps/247 for more information. options.release.set(17) } /* reobfJar { // This is an example of how you might change the output location for reobfJar. It's recommended not to do this // for a variety of reasons, however it's asked frequently enough that an example of how to do it is included here. outputJar.set(layout.buildDirectory.file("libs/PaperweightTestPlugin-${project.version}.jar")) } */ }