Hey, I’m working on an isomorphic web framework for Kotlin. Can somebody point me to any docs which describe how to publish libraries for multi-platform projects? The only docs I’ve found describe the process of publishing libraries targeting JVM.
I don’t know about any docs and I have not published multiplatform projects myself but I am pretty sure you do it just the way you publish for JVM. You just need to publish each of your gradle projects (common, jvm, js).
You could also take a look at the build files for some of the kotlin internal projects. The of kotlinx.serialization seems to be easy to understand: kotlinx.serialization/build.gradle at master · Kotlin/kotlinx.serialization · GitHub
Thanks! I’ll take a look at it.
Here’s one of my projects that I publish for multiple platforms: GitHub - cretz/pb-and-k: Kotlin Code Generator and Runtime for Protocol Buffers (see the runtime sub project). It doesn’t include a Kotlin Native version though one is planned (sorry, JetBrains doesn’t make it easy to develop for all 3 platforms in the same IDE).
Thanks @cretz!