Install GNU Privacy Guard (GPG)
Generate the key gpg --gen-key
base64 /dev/urandom | head -c20; echo;Find the ID of your public key gpg --list-secret-keys
sec 2048R/ABCDEFGH 2015-11-17ABCDEFGH is the ID for your public keyUpload your public key to a public server: gpg --send-keys --keyserver hkp://pgp.mit.edu ABCDEFGH
gpg: keyserver send failed: No data, try again in ~5m. The mit server semi-frequently has trouble accepting keys$HOME/.m2/settings.xml with your passphrase and your sonatype username and password<settings>
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>[the password for your gpg key]</gpg.passphrase>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>ossrh</id>
<username>[your sonatype account name]</username>
<password>[your sonatype account password]</password>
</server>
</servers>
</settings>
Minor changes should be a point increase (0.6.0 -> 0.6.1). Additions to API or breaking changes should be a major release. (0.6.0 -> 0.7.0)
releasetool start. Select “minor” or “patch” for the release type. This will bump the artifact versions, ask you to edit release notes, and create the release pull request.mvn clean install deploy -DperformRelease=true to stage the release.mvn nexus-staging:drop.mvn nexus-staging:release -DperformRelease=truecom.google.authscripts/update_javadoc.sh.releasetool tag to create the GitHub release.releasetool start to bump the next snapshot version. Select “snapshot” when prompted for the release type. This will bump the artifact versions and create a pull request.git checkout <ref>pom.xml file are not using SNAPSHOT versions