pastefile1
@@ -0,0 +1,36 @@
+plugins {
+ `java-library`
+ id("xyz.jpenilla.run-paper") version "2.2.3" // Adds runServer and runMojangMappedServer tasks for testing
+ id("io.papermc.paperweight.userdev") version "1.5.15"
+}
+
+repositories {
+ mavenLocal()
+}
+
+dependencies {
+ paperweight.paperDevBundle("1.20.4-R0.1-SNAPSHOT", "live.ghostly.paper", "dev-bundle")
+}
+
+group = "live.ghostly"
+version = "1.0-SNAPSHOT"
+description = "Nightmare"
+java.sourceCompatibility = JavaVersion.VERSION_17
+
+tasks {
+ // Configure reobfJar to run when invoking the build task
+ assemble {
+ dependsOn(reobfJar)
+ }
+
+ compileJava {
+ options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
+
+ // 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 = 17
+ }
+ javadoc {
+ options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
+ }
+}
\ No newline at end of file