-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8814597
commit ea157ea
Showing
2 changed files
with
34 additions
and
2 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,34 @@ | ||
## How to release | ||
|
||
Use username/password of sonatype https://s01.oss.sonatype.org/ | ||
|
||
```shell | ||
MAVEN_USERNAME={} MAVEN_PASSWORD={} ./gradlew build publish | ||
``` | ||
|
||
## Generate gpg key | ||
|
||
Generate gpg key with name and email | ||
|
||
```shell | ||
gpg --gen-key | ||
``` | ||
|
||
Export keyring | ||
|
||
```shell | ||
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg | ||
``` | ||
|
||
## Gradle properties | ||
|
||
Gradle properties should looks something like | ||
|
||
```shell | ||
$ cat ~/.gradle/gradle.properties | ||
|
||
signing.keyId=5DBFACD8 | ||
signing.password={passphrase} | ||
signing.secretKeyRingFile=//Users/jsalinas/.gnupg/secring.gpg | ||
``` | ||
|
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 |
---|---|---|
|
@@ -93,6 +93,4 @@ subprojects { | |
signing { | ||
sign publishing.publications.MyPublication | ||
} | ||
|
||
} | ||
|