Skip to content

Instantly share code, notes, and snippets.

@dengue8830
dengue8830 / Publish AAR to jCenter and Maven Central
Last active November 12, 2020 10:44 — forked from lopspower/README.md
Publish AAR to jCenter and Maven Central
Publish AAR to jCenter and Maven Central
=================
[![Twitter](https://img.shields.io/badge/Twitter-@LopezMikhael-blue.svg?style=flat)](http://twitter.com/lopezmikhael)
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
1. I use "Android Studio" and I have this simple android lib that I would like to be available on maven: [CircularImageView](https://github.com/lopspower/CircularImageView)
2. In the library folder(module) I have the lib code abovementioned. And applying in the build.gradle of this folder `apply plugin: 'com.android.library'` I got as output an .aar in the build/outputs/aar/ directory of the module's directory