[stdlib-mpp] Publish wasm artifacts through variants of stdlib KT-60909

This commit is contained in:
Ilya Gorbunov
2023-08-05 08:55:51 +02:00
committed by Space Team
parent 73b4a81663
commit 9640e32483
9 changed files with 119 additions and 85 deletions
-22
View File
@@ -23,25 +23,3 @@ configureWasmStdLib(
) { extensionBody ->
kotlin(extensionBody)
}
afterEvaluate {
// cleanup default publications
// TODO: remove after mpp plugin allows avoiding their creation at all, KT-29273
publishing {
publications.removeAll { it.name != "Main" }
}
tasks.withType<AbstractPublishToMaven> {
if (publication.name != "Main") this.enabled = false
}
tasks.named("publish") {
doFirst {
publishing.publications {
if (singleOrNull()?.name != "Main") {
throw GradleException("kotlin-stdlib-wasm should have only one publication, found $size: ${joinToString { it.name }}")
}
}
}
}
}
@@ -21,25 +21,3 @@ configureWasmStdLib(
) { extensionBody ->
kotlin(extensionBody)
}
afterEvaluate {
// cleanup default publications
// TODO: remove after mpp plugin allows avoiding their creation at all, KT-29273
publishing {
publications.removeAll { it.name != "Main" }
}
tasks.withType<AbstractPublishToMaven> {
if (publication.name != "Main") this.enabled = false
}
tasks.named("publish") {
doFirst {
publishing.publications {
if (singleOrNull()?.name != "Main") {
throw GradleException("kotlin-stdlib-wasm should have only one publication, found $size: ${joinToString { it.name }}")
}
}
}
}
}