[JS] Drop publishing JAR artifact of kotlin-stdlib-js

^KT-62067 fixed
This commit is contained in:
Ilya Goncharov
2023-10-09 18:56:33 +02:00
committed by Space Team
parent 51c6e81de9
commit 6de4d99706
-11
View File
@@ -444,15 +444,6 @@ tasks {
into(rootProject.buildDir.resolve("js-ir-runtime")) into(rootProject.buildDir.resolve("js-ir-runtime"))
} }
val jsLegacyJar by registering(Jar::class) {
archiveAppendix.set("js")
val jsJarFile = jsJar.get().archiveFile
inputs.file(jsJarFile)
doLast {
jsJarFile.get().asFile.toPath().copyTo(archiveFile.get().asFile.toPath(), overwrite = true)
}
}
val jsRearrangedSourcesJar by registering(Jar::class) { val jsRearrangedSourcesJar by registering(Jar::class) {
archiveClassifier.set("js-sources") archiveClassifier.set("js-sources")
archiveVersion.set("") archiveVersion.set("")
@@ -505,7 +496,6 @@ tasks {
val distJsSourcesJar = configurations.create("distJsSourcesJar") val distJsSourcesJar = configurations.create("distJsSourcesJar")
val distJsKlib = configurations.create("distJsKlib") val distJsKlib = configurations.create("distJsKlib")
add(distJsJar.name, jsLegacyJar)
add(distJsSourcesJar.name, jsSourcesJar) add(distJsSourcesJar.name, jsSourcesJar)
add(distJsKlib.name, jsJar) add(distJsKlib.name, jsJar)
} }
@@ -691,7 +681,6 @@ publishing {
mavenPublication { mavenPublication {
artifactId = "$artifactBaseName-js" artifactId = "$artifactBaseName-js"
configureKotlinPomAttributes(project, "Kotlin Standard Library for JS", packaging = "klib") configureKotlinPomAttributes(project, "Kotlin Standard Library for JS", packaging = "klib")
artifact(tasks.named("jsLegacyJar"))
} }
variant("jsApiElements") variant("jsApiElements")
variant("jsRuntimeElements") variant("jsRuntimeElements")