Robert Jaros
maven-publish
pom
defaultPom()
buildSrc
publishing { publications.withType<MavenPublication>().apply { val kotlinMultiplatform by getting { artifactId = "artifactName" pom { defaultPom() } } val js by getting { pom { defaultPom() } } val jvm by getting { pom { defaultPom() } } val metadata by getting { pom { defaultPom() } } } }
Dominaezzz
publishing { publications.withType<MavenPublication>().apply { val kotlinMultiplatform by getting { artifactId = "artifactName" } names.forEach { getByName(it) { pom { defaultPom() } } } } }
publications.withType<MavenPublication> { pom { defaultPom() } }
if (name == "kotlinMultiplatform") artifactId = "artifactName"
A modern programming language that makes developers happier.