PUBLISHING TO MAVEN CENTRAL: Setup:
- Make an account at Sign up for Jira - Sonatype JIRA
- Setup a GPG key with the same email as used in step 1 and ensure it gets sent to the key server
- Export the key
gpg –export-secret-keys YOUR-KEY-ID > secret-keys.gpg
- Create your gradle.properties file or open it if you already have one, put the following things there and store it in .gradle or gradle folder:
nexusUsername=YOUR_SONATYPE_USER_NAME
nexusPassword=YOUR_SONATYPE_USER_PASSWORD
signing.keyId=KEY_ID
signing.password=KEY_PASSWORD
signing.secretKeyRingFile=/PATH/TO/SECRET/RING/FILE
- Let Tore know your username so it can be added to [OSSRH-72633] New project - Sonatype JIRA which will allow you to publish.
Publishing to Maven:
- Run
gradle publishAllPublicationsToMavenRepository
- Log in at https://s01.oss.sonatype.org and find the new release.
- Select the release and click "close"
- When the processing is done, click "release"
Publishing to Github:
- Run gradle shadowJar
- Go to github and click release and "draft new release" and select the correct branch.
- Add the following file to additional files in the release:
attestation/build/libs/attestation-<VERSION>-all.jar
- And publish the release
For help see the tutorial here