Return source and javadoc publication for kotlin-test-wasm

Setting packaging to klib didn't work because it was overwritten below.

^KTI-692 Fixed
This commit is contained in:
Nikolay Krasko
2021-11-18 16:09:09 +03:00
committed by TeamCityServer
parent 18ed361f9b
commit 6a2c607862
3 changed files with 15 additions and 5 deletions
@@ -103,10 +103,10 @@ var Project.mainPublicationName: String
private fun humanReadableName(name: String) =
name.split("-").joinToString(separator = " ") { it.capitalize(Locale.ROOT) }
fun MavenPublication.configureKotlinPomAttributes(project: Project, explicitDescription: String? = null) {
fun MavenPublication.configureKotlinPomAttributes(project: Project, explicitDescription: String? = null, packaging: String = "jar") {
val publication = this
pom {
packaging = "jar"
this.packaging = packaging
name.set(humanReadableName(publication.artifactId))
description.set(explicitDescription ?: project.description ?: humanReadableName(publication.artifactId))
url.set("https://kotlinlang.org/")