Fix build with java 20

- previous fix required a jdk 17 to be installed as well
This commit is contained in:
AsamK 2023-04-22 19:19:00 +02:00
parent e0ed651e53
commit 3a4ad96a00

View file

@ -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 { plugins {
`kotlin-dsl` `kotlin-dsl`
} }
kotlin { tasks.named<KotlinCompilationTask<KotlinJvmCompilerOptions>>("compileKotlin").configure {
jvmToolchain { compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
languageVersion.set(JavaLanguageVersion.of("17"))
} }
java {
targetCompatibility = JavaVersion.VERSION_17
} }
repositories { repositories {