c2589c7d6d
So it doesn't interfere with javadocJar task accessor
48 lines
946 B
Groovy
48 lines
946 B
Groovy
description = 'Kotlin Test JUnit'
|
|
|
|
apply plugin: 'kotlin-platform-jvm'
|
|
|
|
configureJvm6Project(project)
|
|
configurePublishing(project)
|
|
|
|
def includeJava9 = BuildPropertiesExtKt.getIncludeJava9(project.kotlinBuildProperties)
|
|
|
|
sourceSets {
|
|
if (includeJava9) {
|
|
java9
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
expectedBy project(':kotlin-test:kotlin-test-annotations-common')
|
|
compile project(':kotlin-test:kotlin-test-jvm')
|
|
compile('junit:junit:4.12')
|
|
}
|
|
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project, 'Test', true)
|
|
if (includeJava9) {
|
|
from sourceSets.java9.output
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
sources sourcesJar
|
|
}
|
|
|
|
configureJavadocJar()
|
|
|
|
compileKotlin {
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package", "-module-name", project.name]
|
|
}
|
|
|
|
compileTestKotlin {
|
|
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
|
}
|
|
|
|
if (includeJava9) {
|
|
compileJava9Sources(project, 'kotlin.test.junit')
|
|
}
|