From fcf9bc6cd3c956e14314893207fca31781d05133 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Wed, 27 Sep 2023 08:21:20 -0600 Subject: [PATCH] Fix compilation --- build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 82e6929..827b8ff 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -17,6 +17,8 @@ plugins { alias(libs.plugins.kotlin.jvm) } +val javaVersion = JavaVersion.VERSION_17 + allprojects { repositories { mavenLocal() @@ -27,7 +29,11 @@ allprojects { } group = "com.wbrawner" version = "0.0.1-SNAPSHOT" + tasks.withType { + sourceCompatibility = javaVersion.majorVersion + targetCompatibility = javaVersion.majorVersion + } tasks.withType { - kotlinOptions.jvmTarget = "16" + kotlinOptions.jvmTarget = javaVersion.majorVersion } }