Build common standard library headers and kotlin-test (common and jvm) as multiplatform projects.

This commit is contained in:
Ilya Gorbunov
2017-03-06 19:47:51 +03:00
parent 780e12f04a
commit 08fa304b6f
11 changed files with 272 additions and 121 deletions
+37
View File
@@ -0,0 +1,37 @@
description = 'Kotlin Test'
apply plugin: 'kotlin-platform-jvm'
dependencies {
implement project(':kotlin-test:kotlin-test-common')
compile project(':kotlin-stdlib')
testCompile('junit:junit:4.12')
}
commonJvmProjectConfiguration(project)
archivesBaseName = 'kotlin-test'
jar {
manifest {
attributes 'addDefaultImplementationEntries': true,
'Implementation-Title': "${project.description ?: project.name}"
}
dependsOn classes
from sourceSets.main.output
}
artifacts {
archives sourcesJar
archives javadocJar
}
compileKotlin {
// TODO: Why "-Xmulti-platfrom" ?
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform", "-module-name", project.archivesBaseName]
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
}