Upgrade Java language level to 11
This commit is contained in:
parent
fa105a2919
commit
7cec2bc5a7
|
|
@ -1,3 +1,5 @@
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
fun properties(key: String) = project.findProperty(key).toString()
|
fun properties(key: String) = project.findProperty(key).toString()
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|
@ -19,9 +21,16 @@ intellij {
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
// Set the JVM compatibility versions
|
||||||
kotlinOptions {
|
properties("javaVersion").let {
|
||||||
jvmTarget = "1.8"
|
withType<JavaCompile> {
|
||||||
|
sourceCompatibility = it
|
||||||
|
targetCompatibility = it
|
||||||
|
}
|
||||||
|
withType<KotlinCompile> {
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = it
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ pluginName = filename_template
|
||||||
pluginVersion = 1.2.0-213
|
pluginVersion = 1.2.0-213
|
||||||
platformVersion = 2021.3
|
platformVersion = 2021.3
|
||||||
|
|
||||||
|
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
|
||||||
|
javaVersion = 11
|
||||||
|
|
||||||
gradleVersion = 7.3
|
gradleVersion = 7.3
|
||||||
|
|
||||||
# Opt-out flag for bundling Kotlin standard library.
|
# Opt-out flag for bundling Kotlin standard library.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user