Add script runtime, refactorings

This commit is contained in:
Ilya Chernikov
2016-12-30 11:54:46 +01:00
committed by Ilya Gorbunov
parent c2c051cfe8
commit ed9221cb7d
4 changed files with 60 additions and 21 deletions
@@ -0,0 +1,30 @@
description 'Kotlin Script Runtime'
dependencies {
compile project(':kotlin-runtime')
}
sourceSets {
main {
kotlin {
srcDir "${rootDir}/../core/script.runtime/src"
}
}
}
jar {
manifest {
attributes 'Kotlin-Runtime-Component': 'Core',
'Implementation-Title': "${project.description ?: project.name}"
}
}
artifacts {
archives sourcesJar
archives javadocJar
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
}