eb4e96a113
It acts as a workaround for the case when build tools or dependencies are compiled with latest 'kotlin-stdlib' version, but at a runtime older 'kotlin-stdlib' is provided, which does not know about new `EnumEntries`. ^KT-57317 Fixed
18 lines
436 B
Kotlin
18 lines
436 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
|
|
plugins {
|
|
id("org.jetbrains.kotlin.jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
configureKotlinCompileTasksGradleCompatibility()
|
|
extensions.extraProperties["kotlin.stdlib.default.dependency"] = "false"
|
|
|
|
dependencies {
|
|
compileOnly(project(":kotlin-stdlib"))
|
|
}
|
|
|
|
tasks.withType<KotlinJvmCompile>().configureEach {
|
|
compilerOptions.freeCompilerArgs.add("-Xallow-kotlin-package")
|
|
}
|