Skip to content

Instantly share code, notes, and snippets.

View cortinico's full-sized avatar
♦️
Reticulating splines...

Nicola Corti cortinico

♦️
Reticulating splines...
View GitHub Profile
@cortinico
cortinico / README.md
Created June 6, 2017 09:39 — forked from lopspower/README.md
Publish AAR to jCenter and Maven Central

Publish AAR to jCenter and Maven Central

Twitter

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

  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