2e515f3945
But still compile stdlib, reflect, kotlin.test and scripting runtimes with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7. #KT-45165 Fixed
31 lines
585 B
Kotlin
31 lines
585 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
project.updateJvmTarget("1.6")
|
|
|
|
dependencies {
|
|
api(kotlinStdlib())
|
|
compileOnly(project(":kotlin-reflect-api"))
|
|
testApi(commonDependency("junit"))
|
|
kotlinCompilerClasspath(project(":libraries:tools:stdlib-compiler-classpath"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xallow-kotlin-package"
|
|
)
|
|
}
|
|
|
|
publish()
|
|
|
|
runtimeJar()
|
|
sourcesJar()
|
|
javadocJar()
|