blob: 32563ea119bcdefffc024458da0dc02c39a6d9fe [file] [log] [blame]
description = 'Kotlin Test'
apply plugin: 'kotlin-platform-jvm'
apply plugin: 'pill-configurable'
configureJvm6Project(project)
configureDist(project)
configurePublishing(project)
pill {
importAsLibrary = true
}
sourceSets {
java9
}
dependencies {
expectedBy project(':kotlin-test:kotlin-test-common')
compile project(':kotlin-stdlib')
testCompile project(":kotlin-test:kotlin-test-junit")
testCompile('junit:junit:4.12')
}
archivesBaseName = 'kotlin-test'
jar {
manifestAttributes(manifest, project, 'Test', true)
// TODO: enable as soon as this doesn't cause D8/DX to crash
// from sourceSets.java9.output
}
artifacts {
archives sourcesJar
archives javadocJar
}
dist {
from (jar, sourcesJar)
}
compileKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-Xnormalize-constructor-calls=enable",
"-module-name", project.archivesBaseName]
}
compileTestKotlin {
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
}
compileJava9Sources(project, 'kotlin.test')