3db1613167
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.
39 lines
738 B
Groovy
39 lines
738 B
Groovy
|
|
description = 'Kotlin Test'
|
|
|
|
apply plugin: 'kotlin-platform-jvm'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
dependencies {
|
|
implement project(':kotlin-test:kotlin-test-common')
|
|
compile project(':kotlin-stdlib')
|
|
testCompile('junit:junit:4.12')
|
|
}
|
|
|
|
|
|
archivesBaseName = 'kotlin-test'
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test')
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
dist {
|
|
from (jar, sourcesJar)
|
|
}
|
|
|
|
compileKotlin {
|
|
// TODO: Why "-Xmulti-platfrom" ?
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xmulti-platform", "-module-name", project.archivesBaseName]
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
|
}
|