Also set JVM target to 11 for Java

This commit is contained in:
Hannes Braun 2021-10-13 16:03:29 +02:00
parent a292b45fcb
commit 90847a2730
Signed by: hannesbraun
GPG Key ID: 7B6557E1DFD685BE
1 changed files with 9 additions and 2 deletions

View File

@ -30,9 +30,16 @@ test {
}
}
def jvmTargetVersion = "11"
compileKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = jvmTargetVersion
}
compileJava {
targetCompatibility = jvmTargetVersion
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
kotlinOptions.jvmTarget = jvmTargetVersion
}
compileTestJava {
targetCompatibility = jvmTargetVersion
}