From fd3697e3dbbcdc6cf64a87905a96e47cd0b60c6d Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 1 Dec 2021 12:30:21 +0100 Subject: [PATCH] Upgrade to Java 17 --- build.gradle.kts | 6 +++--- compile.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index fbdefcc..acb9f26 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { - kotlinOptions.jvmTarget = "16" + kotlinOptions.jvmTarget = "17" } application { diff --git a/compile.sh b/compile.sh index 5c8fa93..21fb49b 100755 --- a/compile.sh +++ b/compile.sh @@ -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