Publishing to Maven Central

PUBLISHING TO MAVEN CENTRAL: Setup:

  1. Make an account at Sign up for Jira - Sonatype JIRA
  2. Setup a GPG key with the same email as used in step 1 and ensure it gets sent to the key server
  3. Export the key gpg –export-secret-keys YOUR-KEY-ID > secret-keys.gpg
  4. 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
  1. 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:

  1. Run gradle publishAllPublicationsToMavenRepository
  2. Log in at https://s01.oss.sonatype.org and find the new release.
  3. Select the release and click "close"
  4. When the processing is done, click "release"

Publishing to Github:

  1. Run gradle shadowJar
  2. Go to github and click release and "draft new release" and select the correct branch.
  3. Add the following file to additional files in the release: attestation/build/libs/attestation-<VERSION>-all.jar
  4. And publish the release

For help see the tutorial here