infinum android talks #04 - how to publish an android archive (.aar) to maven central
DESCRIPTION
In this lecture we show you how to publish your android library to Maven Central for simple inclusion in any Android Studio project, complete with example code - the whole deal.TRANSCRIPT
How to publish an android archive (.aar) to Maven Central
Dino Kovač
1. Create JIRA account athttps://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.vandalsostware.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