plugins { id 'java' id 'io.papermc.paperweight.userdev' version "1.3.7" id 'xyz.jpenilla.run-paper' version "1.0.6" // Adds runServer and runMojangMappedServer tasks for testing } group = 'illusion' version = '1.0-SNAPSHOT' 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.17.1-R0.1-SNAPSHOT' paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT") implementation('org.projectlombok:lombok:1.18.24') annotationProcessor('org.projectlombok:lombok:1.18.24') implementation fileTree(dir: "libs", include: ["*.jar"]) } 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")) } */ }