Add module-info.java for standard Kotlin libraries
Using the new multi-release jar feature, store compiled module-info.class files into META-INF/versions/9 instead of the artifact root. Hopefully, this will break fewer tools which do not support module-info.class files because any sane tool should not do anything with files in META-INF because before Java 9 that directory only contained resources. Upgrade some Maven plugins to newer versions which do not fail on module-info.class files #KT-21266 In Progress
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
description = 'Kotlin Test'
|
||||
|
||||
apply plugin: 'kotlin-platform-jvm'
|
||||
@@ -9,6 +8,10 @@ configurePublishing(project)
|
||||
|
||||
project.ext["jpsLibraryPath"] = rootProject.distLibDir
|
||||
|
||||
sourceSets {
|
||||
java9
|
||||
}
|
||||
|
||||
dependencies {
|
||||
expectedBy project(':kotlin-test:kotlin-test-common')
|
||||
compile project(':kotlin-stdlib')
|
||||
@@ -18,8 +21,11 @@ dependencies {
|
||||
|
||||
archivesBaseName = 'kotlin-test'
|
||||
|
||||
createCompileJava9Task(project, "compileJava9", "kotlin.test")
|
||||
|
||||
jar {
|
||||
manifestAttributes(manifest, project, 'Test')
|
||||
manifestAttributes(manifest, project, 'Test', true)
|
||||
from compileJava9.outputs
|
||||
}
|
||||
|
||||
artifacts {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
module kotlin.test {
|
||||
requires transitive kotlin.stdlib;
|
||||
|
||||
exports kotlin.test;
|
||||
|
||||
uses kotlin.test.AsserterContributor;
|
||||
}
|
||||
Reference in New Issue
Block a user