-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't publish multiplatform library #9
Comments
Thanks for sending this! Any chance your project is open source or you can put up a small reproducer somewhere? |
Thanks for sending this. This is an issue with your publishing setup. With KMP, the Kotlin Gradle plugin creates the publications for you, you shouldn't add an additional "release" publication but instead configure the existing ones: @@ -68,11 +68,10 @@ allprojects {
publishing {
publications {
- create<MavenPublication>("release") {
- artifactId = project.name
+ withType(MavenPublication::class.java) {
groupId = project.group.toString()
version = project.version.toString()
- from(components["java"])
+ And call nmcp {
publishAllPublications {
username.set(System.getenv("CENTRAL_SONATYPE_USER"))
password.set(System.getenv("CENTRAL_SONATYPE_PASS"))
publicationType.set("USER_MANAGED")
}
} |
Oh... Thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a project with commonMain, jsMain and jvmMain targets. When I used same configuration with jvm project and it's works fine. But with KMP project I get an error
Configuration:
Error:
In fact, the file utils-jvm-2.5.1.jar was created in /build/libs also like utils-js-2.5.1.klib
The text was updated successfully, but these errors were encountered: