0cad069522
This is required to be able to compile KGP and it's dependencies which set LV to 1.4 when repo will use LV 1.9. This caused by the change how enums are compiled (KT-48872).
28 lines
849 B
Kotlin
28 lines
849 B
Kotlin
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
project.configureJvmToolchain(JdkMajorVersion.JDK_1_8)
|
|
|
|
dependencies {
|
|
api(project(":core:metadata.jvm"))
|
|
api(project(":core:deserialization.common"))
|
|
implementation(project(":core:compiler.common.jvm"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
// 1.9 level breaks Kotlin Gradle plugins via changes in enums (KT-48872)
|
|
// We limit api and LV until KGP will stop using Kotlin compiler directly (KT-56574)
|
|
tasks.withType<KotlinCompilationTask<*>>().configureEach {
|
|
compilerOptions.apiVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead()
|
|
compilerOptions.languageVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead()
|
|
}
|