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
}
tasks {
compileKotlin {
kotlinOptions {
jvmTarget = "16"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "16"
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "16"
}
application {