Use improved syntax for setting Java Version
This commit is contained in:
parent
8059cccc50
commit
3fe9ed5b93
1 changed files with 2 additions and 11 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue