Skip to content

Commit

Permalink
Add release document
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalinaspolo committed May 12, 2023
1 parent 8814597 commit ea157ea
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 34 additions & 0 deletions RELEASE.md
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
```

2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,4 @@ subprojects {
signing {
sign publishing.publications.MyPublication
}

}

0 comments on commit ea157ea

Please sign in to comment.