Update build.gradle.kts

This commit is contained in:
Telesphoreo 2022-05-08 21:23:28 -05:00
parent 28ce3ce8da
commit 46ad9c7c8c
No known key found for this signature in database
GPG key ID: 5ACFFC4682CF849B

View file

@ -26,28 +26,29 @@ repositories {
} }
dependencies { dependencies {
compileOnly("org.projectlombok:lombok:1.18.22") compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.22") annotationProcessor("org.projectlombok:lombok:1.18.24")
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT") compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("dev.plex:Plex:1.1-SNAPSHOT") compileOnly("dev.plex:server:1.1-SNAPSHOT")
compileOnly("dev.plex:api:1.1-SNAPSHOT")
compileOnly("me.totalfreedom:BukkitTelnet:4.8") { compileOnly("me.totalfreedom:BukkitTelnet:4.8") {
exclude("org.papermc.paper", "paper-api") exclude("org.papermc.paper", "paper-api")
} }
} }
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks { tasks {
compileJava { compileJava {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything options.encoding = Charsets.UTF_8.name()
// 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)
} }
javadoc { javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything options.encoding = Charsets.UTF_8.name()
} }
processResources { processResources {
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything filteringCharset = Charsets.UTF_8.name()
} }
} }