Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.54 KB

File metadata and controls

52 lines (38 loc) · 1.54 KB

Developer Notes

How to do a release?

  1. Make sure to increase version number in build.gradle.kts, commit and push the version to the master branch

  2. Do the release on GitHub

  3. Make sure the prerequisites are met that are listed below

  4. Clean, publish and deploy

./gradlew clean && ./gradlew publish && ./gradlew jreleaserDeploy
  1. Go to Maven Central Repository and verify the deployment was successful

Prerequisites

GPG & PGP Keys

Make sure you have the following keys exist:

  • C:/gpg/private.pgp
  • C:/gpg/public.pgp
  • C:/gpg/secring.gpg

Gradle Properties

Make sure you have the following in your global gradle.properties file C:\Users\<user>\.gradle\gradle.properties:

signing.keyId = <value>
signing.password = <value>
signing.secretKeyRingFile = C:/gpg/secring.gpg

JReleaser Properties

Make sure you have the following in your jreleaser.properties file C:\Users\<user>\.jreleaser\config.properties:

JRELEASER_GPG_PUBLIC_KEY = C:/gpg/public.pgp
JRELEASER_GPG_SECRET_KEY = C:/gpg/private.pgp
JRELEASER_GPG_PASSPHRASE = <value>
JRELEASER_GITHUB_TOKEN = <value>
JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME = <value>
JRELEASER_MAVENCENTRAL_SONATYPE_PASSWORD = <value>

Note: JRELEASER_GITHUB_TOKEN does not need a valid value, it just needs a non-empty value set.

If you are setting this up for the first time, you can verify your config is configured correctly with:

./gradlew jreleaserConfig