- Change the version in
gradle.properties
to a non-SNAPSHOT version. - Update
docs/changelog.md
for the impending release. git commit -am "Prepare for release X.Y.Z."
(where X.Y.Z is the new version)./gradlew clean publish --no-daemon --no-parallel
.- Visit Sonatype Nexus and ensure there's only one staging repository.
./gradlew closeAndReleaseRepository
.git tag -a X.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version).- Update
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version."
.git push && git push --tags
.
If steps 5-6 fail, drop the Sonatype repo, fix the problem, commit, and start again at step 4.
In ~/.gradle/gradle.properties
, set the following:
ORG_GRADLE_PROJECT_mavenCentralUsername
- Sonatype username for releasing tocom.squareup
.ORG_GRADLE_PROJECT_mavenCentralPassword
- Sonatype password for releasing tocom.squareup
.