Will anyone please provide your suggestion on how ...
# multiplatform
j
Will anyone please provide your suggestion on how to internally publish Kotlin multi-platform artifacts? This task has always been cumbersome in the past with outdated documentation. I am setting up a new org and would love for community input. I've used Artifactory in the past but only for JVM/Android artifacts. Please respond if you have suggestions. Ideally, an up-to-date guide on publishing for JS, native, and JVM/Android. Thanks.
b
Artifactory/nexus works for mpp too
Mpp "artefact" is actually a bunch of smaller maven artefacts with gradle metadata linking them together
l
We’ve started using the GitHub package registry. I’m liking it so far.
b
I personally had a terrible experience with GH packages when publishing MPP library. Lots of timeouts and unstable connections broke my versions mid-publish way too often. In the end I decided to drop gh packkages...
l
You just have to add your PAT as the password for credentials.
I did notice occasional 409s. I’m hoping that gets fixed soon. GitHub Package Registry is still new.
b
Yep, they're occasional for regular libs that have up to 10 artefact files, but kmp libs with many targets can reach over a hundred artefact uploads for a single module, so 409s become a lot more apparent
l
Yeah. It’s usually only been a couple of libraries doing that for me every few publishes, so I just do a manual publish for those.