003f381fcd
Use distJar configuration instead. It's necessary because currently when using default-type, subproject starts having a transitive dependency to :kotlin-stdlib-common and that leads to exception from KT-20897 when building light classes This change might be reverted once KT-23942 is fixed #KT-23942 Submitted
51 lines
851 B
Groovy
51 lines
851 B
Groovy
description 'Kotlin Script Runtime'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
configureJvm6Project(project)
|
|
configureDist(project)
|
|
configurePublishing(project)
|
|
|
|
project.ext["jpsLibraryPath"] = rootProject.distLibDir
|
|
|
|
dependencies {
|
|
compileOnly project(path: ':kotlin-stdlib', configuration: 'distJar')
|
|
}
|
|
|
|
configurations {
|
|
mainJar
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
kotlin {
|
|
srcDir "${rootDir}/core/script.runtime/src"
|
|
}
|
|
}
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Main')
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
mainJar jar
|
|
}
|
|
|
|
dist {
|
|
from (jar, sourcesJar)
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.freeCompilerArgs = [
|
|
"-Xallow-kotlin-package",
|
|
"-Xnormalize-constructor-calls=enable",
|
|
"-module-name", project.name
|
|
]
|
|
}
|
|
|
|
kotlin.experimental.coroutines 'enable'
|
|
|