Gijs van Veen
11/08/2022, 11:06 AMafterEvaluate {
publishing {
publications {
kotlinMultiplatform { publication ->
artifactId = project.name
groupId = gradle.ext.group_id
version = gradle.ext.library_version
}
}
}
}
}
new:
afterEvaluate {
publishing {
publications {
getByName("kotlinMultiplatform") {
(this as MavenPublication).let {
artifactId = name
groupId = Library.group
version = Library.version
}
}
}
}
}
All the jars etc seem to be generated just fine, but on the new implementation I dont get a root folder for the artifact, even though kotlin documentation specifies:
Some repositories, such as Maven Central, require that the root module contains a JAR artifact without a classifier, for example kotlinMultiplatform-1.0.jar.
The Kotlin Multiplatform plugin automatically produces the required artifact with the embedded metadata artifacts.
This means you don't have to customize your build by adding an empty artifact to the root module of your library to meet the repository's requirements.
https://kotlinlang.org/docs/multiplatform-publish-lib.html#structure-of-publications
What could I be doing wrong?natario1
11/08/2022, 11:40 AMGijs van Veen
11/08/2022, 11:52 AM