Use improved syntax for setting Java Version

This commit is contained in:
Jonas Tobias Hopusch 2021-09-19 19:24:20 +02:00
parent 8059cccc50
commit 3fe9ed5b93
Failed to generate hash of commit

View file

@ -41,17 +41,8 @@ java {
targetCompatibility = JavaVersion.VERSION_16 targetCompatibility = JavaVersion.VERSION_16
} }
tasks { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
compileKotlin { kotlinOptions.jvmTarget = "16"
kotlinOptions {
jvmTarget = "16"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "16"
}
}
} }
application { application {