Files
kotlin-fork/libraries/tools/script-runtime/build.gradle
T
Alexey Tsvetkov 29d2679e8d Do not configure dist task for every published module
This change avoids compiling kotlin-compiler-embeddable,
kotlin-gradle-plugin, and other gradle plugins,
when running `./gradlew dist`
2018-02-01 17:39:55 +03:00

46 lines
721 B
Groovy

description 'Kotlin Script Runtime'
apply plugin: 'kotlin'
configureJvm6Project(project)
configureDist(project)
configurePublishing(project)
dependencies {
compileOnly project(':kotlin-stdlib')
}
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
]
}