Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
-
I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView
-
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