diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 101c307f..3e8942b9 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -1,11 +1,17 @@ +import org.jetbrains.kotlin.gradle.dsl.JvmTarget +import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions +import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask + plugins { `kotlin-dsl` } -kotlin { - jvmToolchain { - languageVersion.set(JavaLanguageVersion.of("17")) - } +tasks.named>("compileKotlin").configure { + compilerOptions.jvmTarget.set(JvmTarget.JVM_17) +} + +java { + targetCompatibility = JavaVersion.VERSION_17 } repositories {