From ad869f734649823dc3addf7a3121c232165f4f75 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sun, 19 Sep 2021 19:58:37 +0200 Subject: [PATCH] Back to Java version 16 Gradle and Kotlin don't yet support Java 17, apparently. :( This commit reverts 7f725b345c591d352d131c07d0aef3e73cee0d2d --- 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 61b5f90..aa6a0b2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -39,8 +39,8 @@ dependencies { } java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_16 + targetCompatibility = JavaVersion.VERSION_16 } tasks.test { @@ -48,7 +48,7 @@ tasks.test { } tasks.withType() { - kotlinOptions.jvmTarget = "17" + kotlinOptions.jvmTarget = "16" } application { diff --git a/compile.sh b/compile.sh index ad9d42d..b7de14a 100755 --- a/compile.sh +++ b/compile.sh @@ -1,3 +1,3 @@ #!/bin/sh -kotlinc app/src/main/kotlin/de/jotoho/waituntil/*.kt -jvm-target 17 -include-runtime -d waituntil.jar +kotlinc app/src/main/kotlin/de/jotoho/waituntil/*.kt -jvm-target 16 -include-runtime -d waituntil.jar