Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 1.84 KB

publish.md

File metadata and controls

71 lines (45 loc) · 1.84 KB

Dev setup

Create GPG key

Link: GnuPG cheatsheet

In order to publish new version/release of Robocode to the Maven repository you need GPG key.

You can create it using this command:

gpg --default-new-key-algo rsa4096 --gen-key

You can export the public key to a file with this command:

gpg --export --armor --output public-key.pub

Next you need to upload your public key (is in the .pub file) to this server: http://keyserver.ubuntu.com:11371/

Next, you need to export the secret keys to a file that must be located in your home directory:

gpg --keyring secring.gpg --export-secret-keys > [user-home-dir]/.gnupg/secring.gpg

Where [user-home-dir] is the home directory for your user account.

You can list the secret keys with this command, to read out the last 8 digits of the secret GPG key:

gpg -K

You need to have file ~/.gradle/gradle.properties with

signing.keyId=<last-8-digits-of gpg -K>
signing.password=<pass-for-the-gpg-key>
signing.secretKeyRingFile=~/.gnupg/secring.gpg
ossrhUsername=<user-at-issues.sonatype.org>
ossrhPassword=<password-at-issues.sonatype.org>

Just staging

Run this command to publish to the staging repository.

./gradlew publishToSonatype

When you log in, you should be able to see the binaries uploaded to staging Repository.

Release to public repos

./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository

This typically occurs within 10 minutes, though updates to search can take up to two hours.

You should be able to see the binaries uploaded to public Repository