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 } }