Files
kotlin-fork/libraries/tools/script-runtime/build.gradle
T
Ilya Gorbunov 3db1613167 Setup dist task to assemble libs for compiler distribution.
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.

Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.

Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00

40 lines
601 B
Groovy

description 'Kotlin Script Runtime'
apply plugin: 'kotlin'
configureJvmProject(project)
configurePublishing(project)
dependencies {
compileOnly project(':kotlin-stdlib')
}
sourceSets {
main {
kotlin {
srcDir "${rootDir}/../core/script.runtime/src"
}
}
}
jar {
manifestAttributes(manifest, project, 'Main')
}
artifacts {
archives sourcesJar
archives javadocJar
}
dist {
from (jar, sourcesJar)
}
compileKotlin {
kotlinOptions.freeCompilerArgs = [
"-Xallow-kotlin-package",
"-module-name", project.name
]
}