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-keyYou can export the public key to a file with this command:
gpg --export --armor --output public-key.pubNext 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.gpgWhere [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 -KYou 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>
Run this command to publish to the staging repository.
./gradlew publishToSonatypeWhen you log in, you should be able to see the binaries uploaded to staging Repository.
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepositoryThis 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
Make sure you set up a CHOCOLATEY_API_KEY environment variable with the API key used for Robocode.
./gradlew chocoPush