53 lines
1.1 KiB
Groovy
53 lines
1.1 KiB
Groovy
description = 'Kotlin Standard Library'
|
|
|
|
dependencies {
|
|
compile project(':kotlin-runtime')
|
|
testCompile project(':kotlin-test-parent:kotlin-test-junit')
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir 'src'
|
|
}
|
|
}
|
|
test {
|
|
kotlin {
|
|
srcDir 'test'
|
|
}
|
|
}
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes \
|
|
'Kotlin-Runtime-Component': 'Core',
|
|
'Kotlin-Version': "$kotlin_language_version",
|
|
'Implementation-Title': "${project.description ?: project.name}"
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.6
|
|
targetCompatibility = 1.6
|
|
options.fork = true
|
|
options.forkOptions.executable = "${JDK_16}/bin/javac"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jdkHome = JDK_16
|
|
freeCompilerArgs = [
|
|
"-Xallow-kotlin-package",
|
|
"-Xmultifile-parts-inherit",
|
|
"-Xdump-declarations-to", "${buildDir}/stdlib-declarations.json".toString(),
|
|
"-module-name", "${project.name}".toString()
|
|
]
|
|
}
|
|
}
|