How to publish an android archive (.aar)
to Maven Central
Dino Kovač
1. Create JIRA account at

https://issues.sonatype.org/secure/Signup!default.jspa
2. Create a New Project ticket
Sonatype repository setup
Generate key:
$ gpg --gen-key	
!
List keys:
$ gpg —list-secret-keys	
!
Distribute key:
$ gpg --keyserver hkp://pool.sks-keyservers.net --
send-keys 794B83B1
Generate PGP key
~/.gradle/gradle.properties
Add authentication info
Gradle upload task
Gradle upload task
$ gradle uploadArchives
Releasing
End result
• http://central.sonatype.org/pages/ossrh-guide.html
• http://central.sonatype.org/pages/releasing-the-
deployment.html
• http://www.vandalsoſtware.com/post/52468430435/
publishing-an-android-library-aar-to-a-maven
• http://jedicoder.blogspot.com/2011/11/automated-gradle-
project-deployment-to.html
• https://docs.sonatype.org/display/Repository/How+To
+Generate+PGP+Signatures+With+Maven
References

Infinum Android Talks #04 - How to publish an Android archive (.aar) to Maven Central