Hey folks, does anyone know/have any source where ...
# multiplatform
a
Hey folks, does anyone know/have any source where I can learn more about publishing a KMP library? My end goal is to consume this library on pure JS, I made the code/tests work both for JVM and JS, but the official docs don’t give more info on how to publish (other than to mavenLocal) or to consume the lib.
a
this query might be more relevant for #library-development, nonetheless here goes: Basically you have to go via MavenCentral since the demise of Bintray. My use case was consuming the library on iOS/Android, assuming JS consumption will be similar for the publishing side but can’t say for sure. Useful links: the 3 part series by Ekaterina Petrova https://dev.to/kotlin/how-to-build-and-publish-a-kotlin-multiplatform-library-creating-your-first-library-1bp8 parts 2 and 3 are on library publishing https://getstream.io/blog/publishing-libraries-to-mavencentral-2021/#overview https://medium.com/kodein-koders/publish-a-kotlin-multiplatform-library-on-maven-central-6e8a394b7030
b
You can also publish it to npm if it's only ever going to be consumed from js. #npm-publish
a
Great! Really appreciate the help, thank you all!