diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..0d3e624 --- /dev/null +++ b/RELEASE.md @@ -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 +``` + diff --git a/build.gradle b/build.gradle index c3c1b60..1c77001 100644 --- a/build.gradle +++ b/build.gradle @@ -93,6 +93,4 @@ subprojects { signing { sign publishing.publications.MyPublication } - } -