Install gnupg to sign the files.
Create a new key with the command below:
gpg --full-generate-key
Use key size of 4096 bits.
To create the secring.gpg
file use:
gpg --export-secret-keys -o "$env:APPDATA\gnupg\secring.gpg"
gpg --export-secret-keys -o ~/.gnupg/secring.gpg
Use the command below:
gpg --list-keys --keyid-format SHORT
The output will contain something like this:
pub rsa4096/{keyid} [some date] ...
You will need the 8 character long keyId from here
Fill in the variables in gradle properties, rename it to gradle.properties
and run:
./gradlew publish
Go to the repository manager, and release the repository.