From c71a777b8e58869975640b167af4668758ec5c44 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sat, 10 Mar 2018 00:34:50 -0600 Subject: [PATCH] Pulling notes over to this repository as well for publishing. --- MAVEN-REPO.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 MAVEN-REPO.md diff --git a/MAVEN-REPO.md b/MAVEN-REPO.md new file mode 100644 index 0000000..3e13994 --- /dev/null +++ b/MAVEN-REPO.md @@ -0,0 +1,57 @@ +# Releasing to the Maven Central Repository + +## GPG Keys + +Summary of commands for GPG2 keys preparation... + +Generate key: + +```bash +$ gpg2 --gen-key +``` + +Publish key on public key server: + +```bash +$ gpg2 --list-keys +$ gpg2 --list-secret-keys +$ gpg2 --keyserver hkp://pool.sks-keyservers.net --send-keys +``` + +Extract secret key for the Gradle signing plugin: + +```bash +$ gpg2 --export-secret-keys > secring.gpg +``` + +## Build and publish to Central Repository + +Ensure full build passes: + +```bash +$ ./gradlew clean test javadoc assemble +<...lots of stuff, primarily Javadoc issues...> +BUILD SUCCESSFUL in 3s +13 actionable tasks: 13 executed +``` + +Upload: + +```bash +$ ./gradlew uploadArchives + +BUILD SUCCESSFUL in 10s +10 actionable tasks: 1 executed, 9 up-to-date +``` + +Then follow "releasing the deployment" below. + +## Tag and publish on GitHub + +Just a reminder! + +# References + +* http://central.sonatype.org/pages/gradle.html +* http://central.sonatype.org/pages/releasing-the-deployment.html +* For all the other little pieces, Google is your friend. ;-)