Until the Gradle release plugin (or something similar) is used the release process has to be performed manually.
- Configure your Sonatype OSS Maven Repository credentials in ~/.m2/settings.xml as described in the manual.
- Set
signing.keyId
andsigning.secretKeyRingFile
in ~/.gradle/gradle.properties.
- Change project version in gradle.properties to the release version (without SNAPSHOT).
- Make a commit.
- Call
./gradlew clean build uploadArchives --no-daemon
and enter a passphrase for the configured key. The artifacts should be built, signed and uploaded to the Sonatype OSS Maven Repository. - Change project version to the next development version (with -SNAPSHOT sufix).
- Make a commit
If the version was approved (and moved to the Central Repository) a proper hash should be tagged and pushed to the remote repo (origin).