Skip to content

Commit ea157ea

Browse files
committed
Add release document
1 parent 8814597 commit ea157ea

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

RELEASE.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## How to release
2+
3+
Use username/password of sonatype https://s01.oss.sonatype.org/
4+
5+
```shell
6+
MAVEN_USERNAME={} MAVEN_PASSWORD={} ./gradlew build publish
7+
```
8+
9+
## Generate gpg key
10+
11+
Generate gpg key with name and email
12+
13+
```shell
14+
gpg --gen-key
15+
```
16+
17+
Export keyring
18+
19+
```shell
20+
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
21+
```
22+
23+
## Gradle properties
24+
25+
Gradle properties should looks something like
26+
27+
```shell
28+
$ cat ~/.gradle/gradle.properties
29+
30+
signing.keyId=5DBFACD8
31+
signing.password={passphrase}
32+
signing.secretKeyRingFile=//Users/jsalinas/.gnupg/secring.gpg
33+
```
34+

build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,4 @@ subprojects {
9393
signing {
9494
sign publishing.publications.MyPublication
9595
}
96-
9796
}
98-

0 commit comments

Comments
 (0)