With JCenter shutting down in May 2021, Android library developers need to migrate to Maven Central. This post points to key resources for setting up a Sonatype account and publishing libraries, recommends the gradle-maven-publish-plugin by Niklas Baudy for handling docs and Kotlin/Dokka support, and covers options for automating the close-and-release step via the plugin's closeAndReleaseRepository task or the Startship CLI tool. The Accompanist library is provided as a real-world example.
Table of contents
Demise of JCenter #Publishing to Maven Central #Publish plugin #Automated closing + releasing #Examples #2 Impressions