Add module-info to kotlin-test-* framework adapter artifacts
#KT-21266
This commit is contained in:
@@ -5,6 +5,14 @@ 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')
|
||||
@@ -13,7 +21,10 @@ dependencies {
|
||||
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project, 'Test')
|
||||
manifestAttributes(manifest, project, 'Test', true)
|
||||
if (includeJava9) {
|
||||
from sourceSets.java9.output
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
@@ -30,3 +41,7 @@ compileKotlin {
|
||||
compileTestKotlin {
|
||||
kotlinOptions.freeCompilerArgs = ["-Xallow-kotlin-package"]
|
||||
}
|
||||
|
||||
if (includeJava9) {
|
||||
compileJava9Sources(project, 'kotlin.test.junit')
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
module kotlin.test.junit {
|
||||
requires transitive kotlin.stdlib;
|
||||
requires transitive kotlin.test;
|
||||
|
||||
requires junit;
|
||||
|
||||
exports kotlin.test.junit;
|
||||
|
||||
provides kotlin.test.AsserterContributor with kotlin.test.junit.JUnitContributor;
|
||||
}
|
||||
Reference in New Issue
Block a user