# How to publish and distribute your Android library

DevFeed: [How to publish and distribute your Android library](<https://devfeed.tech/articles/how-to-publish-and-distribute-your-android-library-25542.md>)

Original publisher: [Read original article](<https://www.marcogomiero.com/posts/2019/publish-librery-android/>)

Author: Marco Gomiero

Published: 2019-05-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Posts on Marco Gomiero](<https://devfeed.tech/sources/posts-on-marco-gomiero.md>)

Topics: [Android Library](<https://devfeed.tech/topics/android-library.md>), [Library](<https://devfeed.tech/topics/library.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [project release](<https://devfeed.tech/topics/project-release.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-library](<https://devfeed.tech/tags/android-library.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [bintray](<https://devfeed.tech/tags/bintray.md>), [build](<https://devfeed.tech/tags/build.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [jcenter](<https://devfeed.tech/tags/jcenter.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [library](<https://devfeed.tech/tags/library.md>), [maven](<https://devfeed.tech/tags/maven.md>), [maven-repository](<https://devfeed.tech/tags/maven-repository.md>), [mavencentral](<https://devfeed.tech/tags/mavencentral.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [module](<https://devfeed.tech/tags/module.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

The tutorial's original process builds an Android library locally, uploads its artifacts to a Bintray Maven repository, and links them to JCenter so developers can add the library through their project's build.gradle. It notes that the Gradle publishing plugin described was deprecated for Gradle 5 and above and points to a Sky-UK plugin. A February 2021 update says JCenter was shutting down in May 2021, so the tutorial no longer recommends its JCenter workflow; it points readers to a MavenCentral publishing guide and a separate guide for migrating existing JCenter artifacts. The supplied text ends as the publishing script is introduced, so it does not include those setup details.

## Source excerpt

Update - February 2021 As you may have heard, JCenter is shutting down in May 2021. Into the Sunset on May 1st: Bintray, JCenter, GoCenter, and ChartCenter https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ So, this tutorial is no longer recommended because it explains how to publish an Android library to JCenter. I suggested you follow this guide written by Márton Braun. Publishing Android libraries to MavenCentral in 2021 https://getstream.io/blog/publishing-libraries-to-mavencentral-2021/ If you have already published a library on JCenter and you want to migrate the old artifacts to MavenCentral, you can follow the guide that I've written: