Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Latest commit

 

History

History
61 lines (42 loc) · 1.57 KB

PUBLISHING.md

File metadata and controls

61 lines (42 loc) · 1.57 KB

Publishing

Credentials

The library is published to Maven Central by the firebase-sonatype account, Googlers can find the password for this account in Valentine

GPG Key

You will need to create a private GPG keyring on your machine, if you don't have one do the following steps:

  1. Run gpg --full-generate-key
  2. Choose RSA and RSA for the key type
  3. Use 4096 for the key size
  4. Use 0 for the expiration (never)
  5. 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>

Local Properties

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>

Publish

To publish, run:

./gradlew publish

Release

Follow the instructions here:

  1. Navigate to https://s01.oss.sonatype.org/ and Log In
  2. On the left side click Build Promotion and look for the com.firebase repo
  3. Click Close ... wait a few minutes (you can check status with Refresh)
  4. Click Release