Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 735 Bytes

RELEASING.md

File metadata and controls

37 lines (21 loc) · 735 Bytes

Releasing

Set variables:

export VERSION=X.Y.Z
export GPG_KEY=B993FF98A90C9AB1

Ensure that ossrhUsername and ossrhPassword are defined in your ~/.gradle/gradle.properties file.

Update version numbers:

vim -p build.gradle README.md

Build:

./gradlew clean build

Add and commit:

git commit -S${GPG_KEY} -m "Release v${VERSION}"

Publish the library to Sonatype OSS / Maven Central:

./gradlew publish

Afterwards, go to https://s01.oss.sonatype.org/#stagingRepositories and:

  • Close the repository
  • Release the repository

Note: It may take a while until the release is visible!

Tag and push:

git tag -s -u ${GPG_KEY} v${VERSION} -m "Version ${VERSION}"
git push && git push --tags