gradle.properties
to a non-SNAPSHOT version.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
../gradlew closeAndReleaseRepository
.git tag -a X.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version).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 to com.squareup
.ORG_GRADLE_PROJECT_mavenCentralPassword
- Sonatype password for releasing to com.squareup
.