Add builds for main stdlib, stdlib jre7/8, kotlin.test

This commit is contained in:
Ilya Chernikov
2017-01-04 15:00:47 +01:00
committed by Ilya Gorbunov
parent ed9221cb7d
commit 35a135cbf6
7 changed files with 257 additions and 5 deletions
+38 -1
View File
@@ -1,5 +1,42 @@
description = ''
description = 'Kotlin Test JUnit'
dependencies {
compile project(':kotlin-runtime')
compile project(':kotlin-test-parent:kotlin-test')
compile('junit:junit:4.12')
}
sourceSets {
main {
kotlin {
srcDir 'src/main/kotlin'
srcDir 'src/main/kotlin.jvm'
}
}
test {
kotlin {
srcDir 'src/test/kotlin'
srcDir 'src/test/kotlin.jvm'
}
}
}
jar {
manifest {
attributes 'Implementation-Title': "${project.description ?: project.name}"
}
}
artifacts {
archives sourcesJar
archives javadocJar
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", "${project.name}".toString()]
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
}