The library is published to Maven Central by the firebase-sonatype account, Googlers can find the password for this account in Valentine
You will need to create a private GPG keyring on your machine, if you don't have one do the following steps:
- Run
gpg --full-generate-key
- Choose
RSA and RSA
for the key type - Use
4096
for the key size - Use
0
for the expiration (never) - Use any name, email address, and password
This creates your key in ~/.gnupg/openpgp-revocs.d/
with .rev
format. The last 8 characters
before the .rev
extension are your Key ID.
To export the key, run:
gpg --export-secret-keys -o $HOME/sonatype.gpg
Finally upload your key to the keyserver:
gpg --keyserver hkp://keys.openpgp.org --send-keys <YOUR KEY ID>
Open your $HOME/.gradle/gradle.properties
file at and fill in the values:
signing.keyId=<KEY ID>
signing.password=<PASSWORD YOU CHOSE>
signing.secretKeyRingFile=<FULL PATH TO YOUR GPG FILE>
mavenCentralRepositoryUsername=firebase-sonatype
mavenCentralRepositoryUsername=<PASSWORD FROM VALENTINE>
To publish, run:
./gradlew publish
Follow the instructions here:
- Navigate to https://s01.oss.sonatype.org/ and Log In
- On the left side click Build Promotion and look for the
com.firebase
repo - Click Close ... wait a few minutes (you can check status with Refresh)
- Click Release