This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from JCenter to Maven Central (#323)
- Loading branch information
Showing
10 changed files
with
151 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## Publishing | ||
|
||
### Credentials | ||
|
||
The library is published to Maven Central by the firebase-sonatype account, Googlers can find the | ||
password for this account in [Valentine](http://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` | ||
1. Choose `RSA and RSA` for the key type | ||
1. Use `4096` for the key size | ||
1. Use `0` for the expiration (never) | ||
1. 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](https://central.sonatype.org/pages/releasing-the-deployment.html): | ||
|
||
1. Navigate to https://s01.oss.sonatype.org/ and **Log In** | ||
1. On the left side click **Build Promotion** and look for the `com.firebase` repo | ||
1. Click **Close** ... wait a few minutes (you can check status with **Refresh**) | ||
1. Click **Release** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
GROUP=pub.devrel | ||
POM_ARTIFACT_ID=easypermissions | ||
VERSION_NAME=3.0.0 | ||
|
||
POM_NAME=EasyPermissions | ||
POM_PACKAGING=aar | ||
|
||
POM_DESCRIPTION=A wrapper library for basic Android M system permissions logic | ||
|
||
POM_URL=https://github.com/googlesamples/easypermissions | ||
POM_SCM_URL=https://github.com/googlesamples/easypermissions | ||
POM_SCM_CONNECTION=https://github.com/googlesamples/easypermissions.git | ||
|
||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
POM_DEVELOPER_NAME=Google |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Tue Jul 07 16:12:58 CST 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.