Update project JDK to 17

This commit is contained in:
Zontreck 2024-02-06 20:59:16 -07:00
parent 6c7d6077e8
commit 32e1d946a3
2 changed files with 6 additions and 6 deletions

View file

@ -18,13 +18,9 @@ group = "dev.zontreck"
archivesBaseName = "LibAC"
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(8)
toolchain.languageVersion = JavaLanguageVersion.of(17)
withSourcesJar()
withJavadocJar()
}
@ -96,3 +92,7 @@ publishing {
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}