KT-62004 Drop legacy JS build of kotlin-stdlib

- preserve kotlin-stdlib-js.jar in dist and maven
- change packaging to klib in .pom
- fix manifest attributes of kotlin-stdlib-js
This commit is contained in:
Ilya Gorbunov
2023-09-19 17:14:28 +02:00
committed by Space Team
parent 6d5b1f84f9
commit 785d6858ea
6 changed files with 18 additions and 285 deletions
-9
View File
@@ -77,7 +77,6 @@ val distMavenContents by configurations.creating {
val distCommonContents by configurations.creating
val distStdlibMinimalForTests by configurations.creating
val buildNumber by configurations.creating
val distJSContents by configurations.creating
val compilerBaseName = name
@@ -214,8 +213,6 @@ dependencies {
distStdlibMinimalForTests(project(":kotlin-stdlib-jvm-minimal-for-test"))
distJSContents(project(":kotlin-stdlib", configuration = "distJsContent"))
distCommonContents(project(":kotlin-stdlib", configuration = "commonMainMetadataElements"))
distCommonContents(project(":kotlin-stdlib", configuration = "metadataSourcesElements"))
}
@@ -442,18 +439,12 @@ val distMaven = distTask<Sync>("distMaven") {
from(distMavenContents)
}
val distJs = distTask<Sync>("distJs") {
destinationDir = File("$distDir/js")
from(distJSContents)
}
distTask<Copy>("dist") {
destinationDir = File(distDir)
dependsOn(distKotlinc)
dependsOn(distCommon)
dependsOn(distMaven)
dependsOn(distJs)
dependsOn(distSbomTask)
from(buildNumber)