Files
kotlin-fork/libraries/tools/script-runtime/build.gradle
T
Yan Zhulanow ba5836d666 Pill: Introduce pill{} extension to set extended Pill configuration
Also introduce the flavor concept which allows to specify what part of Kotlin project should be imported.
2018-05-15 16:29:45 +03:00

54 lines
866 B
Groovy

description 'Kotlin Script Runtime'
apply plugin: 'kotlin'
apply plugin: 'pill-configurable'
configureJvm6Project(project)
configureDist(project)
configurePublishing(project)
pill {
importAsLibrary = true
}
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'