In order to sign and deploy release builds, the following Gradle properties must be defined:
repoUsername=username
repoPassword=abc123
signing.keyId=FEDCBA98
signing.password=abc123
signing.secretKeyRingFile=/path/to/secring.gpg
The most convenient way to do this is to create a gradle.properties
file in the root directory of the project.
Alternate ways to define these properties can be found in the Gradle user guide.
- Change the version in
build.gradle
to a non-SNAPSHOT version. - Update
CHANGELOG.md
andREADME.md
for the impending release. git commit -am "Prepare for release X.Y.Z"
(where X.Y.Z is the new version)../gradlew clean build uploadArchives
- Visit Sonatype Nexus and promote the artifact.
git tag -s X.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version).- Change the version in
build.gradle
to the next SNAPSHOT version. git commit -am "Prepare next development version"
git push && git push --tags