[stdlib-mpp] Publish wasm artifacts through variants of stdlib KT-60909
This commit is contained in:
committed by
Space Team
parent
73b4a81663
commit
9640e32483
@@ -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 }}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user