Skip to content

Instantly share code, notes, and snippets.

View zhuangzaiku's full-sized avatar
🎯
Focusing

Zack zhuangzaiku

🎯
Focusing
View GitHub Profile
@zhuangzaiku
zhuangzaiku / README.md
Created May 26, 2017 06:45 — 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