Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 968 Bytes

RELEASING.md

File metadata and controls

43 lines (30 loc) · 968 Bytes

Releasing

Prerequisites

  • Sonatype (Maven Central) Account
  • GPG keys

Gradle properties

Define publishing properties in ~/.gradle/gradle.properties:

# Replace with your values
SONATYPE_NEXUS_USERNAME=
SONATYPE_NEXUS_PASSWORD=

signing.keyId=A3270D81
signing.password=
signing.secretKeyRingFile=C:/Users/Uwe/AppData/Roaming/gnupg/secring.gpg

Creating a release

  1. Update CHANGELOG.md.

  2. Change version in api\build.gradle to a non-snapshot version.

  3. Build and publish:

    ./gradlew clean :api:publishCentralPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
    
  4. Commit and tag release. Change version back to snapshot, commit. Push to GitHub.

    git commit -am "Prepare API release 1.2.3."
    git tag api-1.2.3
    // After changing version back to snapshots
    git commit -am "Prepare next API development version."
    git push origin dev
    git push origin api-1.2.3