[Build] Pin api and language level to 1.8 in :pill:pill-importer module
^KT-56687
This commit is contained in:
committed by
Space Team
parent
0cad069522
commit
25b1fbc541
@@ -1,5 +1,7 @@
|
||||
import java.lang.reflect.Modifier
|
||||
import java.net.URLClassLoader
|
||||
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
@@ -49,3 +51,10 @@ val unpill by tasks.creating {
|
||||
dependsOn(jar)
|
||||
doLast { runPillTask("unpill") }
|
||||
}
|
||||
|
||||
// 1.9 level breaks Kotlin Gradle plugins via changes in enums (KT-48872)
|
||||
tasks.withType<KotlinCompilationTask<*>>().configureEach {
|
||||
compilerOptions.apiVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead()
|
||||
compilerOptions.languageVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user