-
Make sure to increase version number in build.gradle.kts, commit and push the version to the
masterbranch -
Do the release on GitHub
-
Make sure the prerequisites are met that are listed below
-
Clean, publish and deploy
./gradlew clean && ./gradlew publish && ./gradlew jreleaserDeploy- Go to Maven Central Repository and verify the deployment was successful
Make sure you have the following keys exist:
C:/gpg/private.pgpC:/gpg/public.pgpC:/gpg/secring.gpg
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.gpgMake 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