1.0 KiB
1.0 KiB
Releasing
- Change the version in
gradle.propertiesto a non-SNAPSHOT version. - Update
docs/changelog.mdfor 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.propertiesto 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.
Prerequisites
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.