Upgrade to Java 17

This commit is contained in:
Jonas Tobias Hopusch 2021-12-01 12:30:21 +01:00
parent e11d3ead97
commit fd3697e3db
Failed to generate hash of commit
2 changed files with 4 additions and 4 deletions

View file

@ -34,8 +34,8 @@ dependencies {
}
java {
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.test {
@ -53,7 +53,7 @@ tasks.jar {
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
kotlinOptions.jvmTarget = "17"
}
application {

View file

@ -2,4 +2,4 @@
# shellcheck disable=SC2046
# Word splitting in find results is intentional!
kotlinc $(find src/main -type f -iname '*.kt') -jvm-target 16 -include-runtime -d waituntil.jar
kotlinc $(find src/main -type f -iname '*.kt') -jvm-target 17 -include-runtime -d waituntil.jar