Build default jvm core libraries artifacts as modular

#KT-21266
This commit is contained in:
Ilya Gorbunov
2020-04-20 23:24:44 +03:00
parent e1e149a062
commit 01fb200791
5 changed files with 15 additions and 23 deletions
+2 -4
View File
@@ -45,9 +45,8 @@ dependencies {
}
jar {
manifestAttributes(manifest, project, 'Main' /*true*/)
// TODO: enable as soon as this doesn't cause D8/DX to crash
// from sourceSets.java9.output
manifestAttributes(manifest, project, 'Main', true)
from sourceSets.java9.output
}
task modularJar(type: Jar) {
@@ -56,7 +55,6 @@ task modularJar(type: Jar) {
classifier = 'modular'
from zipTree(jar.outputs.files.singleFile)
from sourceSets.java9.output
}
+2 -4
View File
@@ -39,9 +39,8 @@ sourceSets {
}
jar {
manifestAttributes(manifest, project, 'Main' /*true*/)
// TODO: enable as soon as this doesn't cause D8/DX to crash
// from sourceSets.java9.output
manifestAttributes(manifest, project, 'Main', true)
from sourceSets.java9.output
}
task modularJar(type: Jar) {
@@ -50,7 +49,6 @@ task modularJar(type: Jar) {
classifier = 'modular'
from zipTree(jar.outputs.files.singleFile)
from sourceSets.java9.output
}
+3 -8
View File
@@ -58,12 +58,11 @@ dependencies {
jar {
dependsOn(configurations.builtins)
manifestAttributes(manifest, project, 'Main' /*true*/)
manifestAttributes(manifest, project, 'Main', true)
from {
zipTree(configurations.builtins.singleFile)
}
// TODO: enable as soon as this doesn't cause D8/DX to crash
// from sourceSets.java9.output
from sourceSets.java9.output
}
sourcesJar {
@@ -90,11 +89,7 @@ task modularJar(type: Jar) {
manifestAttributes(manifest, project, 'Main', true)
classifier = 'modular'
from zipTree(jar.outputs.files.singleFile).matching {
// Beware of Gradle problem: changing exclude spec doesn't affect Jar task up-to-dateness
exclude('kotlin/native/**')
}
from sourceSets.java9.output
from zipTree(jar.outputs.files.singleFile)
}
artifacts {