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:
committed by
TeamCityServer
parent
18ed361f9b
commit
6a2c607862
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user