Where do you usually publish your kotlin libraries...
# announcements
y
Where do you usually publish your kotlin libraries? On Maven Central (since the sunset of bintray/jcenter)? If so what do you use for publishing? It seems to me to be so overly complicated (pgp signing, staging area, manual intervention...). Has anybody made it simple?
n
bintray did and they shut down the service 🤷‍♂️
😥 1
b
There's also https://jitpack.io/
🚫 1
As for publishing to central, there's a great gradle plugin https://github.com/gradle-nexus/publish-plugin
n
jitpack is a bit different imho, it’s more like a quick-and-dirty hack
☝️ 1
y
it's also not free... and after being burned by bintray I am not sure who to trust now...
b
Agreed, it's good for new libs, but everyone should plan for maven central eventually
jitpack is free for open source
If you're looking for something private, why not artifactory or github packages?
y
no actually it is for open source libs
d
There is no need for manual release step to maven central - you can use plugins that will release automatically. You should be using some automation anyway so those extra steps like signing artifacts is one time setup anyway
y
@Dariusz Kuc sure but how?
d
There are number of projects publishing to central
There should be lots of articles on medium talking about this
y
I will look into it. Thanks
k
This article covers all of the steps including auto release step and CI integration: https://getstream.io/blog/publishing-libraries-to-mavencentral-2021/ I used it in my migration from the JCenter and it was really easy to accomplish thanks to this great article (except waiting for Sonatype acceptance it took me around 3 hours to migrate)
y
thank you for the link