Does this make java 21?

This commit is contained in:
libraryaddict 2024-08-05 23:43:50 +12:00
parent b0c8835b25
commit c9564ebc7b
2 changed files with 8 additions and 8 deletions

View File

@ -2,6 +2,12 @@ plugins {
`java-library`
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
subprojects {
repositories {
mavenCentral()
@ -30,13 +36,11 @@ subprojects {
apply(plugin = "java-library")
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "1.8"
sourceCompatibility = "8"
targetCompatibility = "8"
}
group = "me.libraryaddict.disguises"

View File

@ -62,10 +62,6 @@ tasks {
}
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
application {
mainClass = "me.libraryaddict.disguise.utilities.watchers.CompileMethods"
applicationDefaultJvmArgs = listOf(