Hey guys good morning. i am trying to publish a KM...
# android
a
Hey guys good morning. i am trying to publish a KMM library to maven central i hape followed this article https://dev.to/kotlin/how-to-build-and-publish-a-kotlin-multiplatform-library-going-public-4a8k but the publishment is always failing i am getting the error in the screenshot attached below.
j
Can you try to set a version to your project?
1.0.0 for example
a
i tryed it now but still same error
l
This may be a bit tangential to your issue, but it looks like you’re running the publishKotlinMultiplatform task. This will only publish the metadata that tells common code what to expect from my understanding. You’ll want to run publish or publishToSonatype to publish all the binaries.
Otherwise, here’s Sonatype’s notes about 400 errors. https://central.sonatype.org/faq/400-error/#question Are you publishing to a snapshot repo? I’d also pay attention to the new server notes. Maybe the tutorial is using the old one.