Files
kotlin-fork/libraries/tools/script-runtime/build.gradle
T
Denis Zharkov 003f381fcd Replace default-type dependencies to :kotlin-stdlib with distJar
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
2018-04-26 16:11:27 +03:00

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'