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
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue