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
38 lines
735 B
Groovy
38 lines
735 B
Groovy
description 'Kotlin Script Runtime'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
JvmToolchain.configureJvmToolchain(project, JdkMajorVersion.JDK_1_6)
|
|
|
|
configurePublishing(project)
|
|
|
|
dependencies {
|
|
compileOnly kotlinStdlib()
|
|
kotlinCompilerClasspath project(':libraries:tools:stdlib-compiler-classpath')
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
kotlin {
|
|
srcDir "${rootDir}/core/script.runtime/src"
|
|
}
|
|
}
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Main')
|
|
}
|
|
|
|
configureSourcesJar()
|
|
configureJavadocJar()
|
|
|
|
compileKotlin {
|
|
kotlinOptions.freeCompilerArgs = [
|
|
"-Xallow-kotlin-package",
|
|
"-Xsuppress-deprecated-jvm-target-warning",
|
|
]
|
|
kotlinOptions.moduleName = project.name
|
|
}
|
|
|
|
configureFrontendIr(project)
|