- Sonatype (Maven Central) Account
- GPG keys
Define publishing properties in ~/.gradle/gradle.properties:
# Replace with your values
SONATYPE_NEXUS_USERNAME=
SONATYPE_NEXUS_PASSWORD=
-
Update
README.mdandRELEASE_NOTES.md. -
Change version in
androidutils\build.gradleto a non-snapshot version. -
Build and publish:
./gradlew clean publishCentralPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository -
Commit and tag release. Change version back to snapshot, commit. Push to GitHub.
git commit -am "Prepare release 1.2.3" git tag v1.2.3 // After changing version back to snapshots git commit -am "Start development of next version." git push origin main --tags