From 9d676a5f4401c788fe15bbbf4e35fb6d08f3cc39 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Sat, 28 Oct 2023 12:00:24 -0500 Subject: [PATCH] Updating Maven release notes with a copy from AppleCommander. --- api/MAVEN-REPO.md | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/api/MAVEN-REPO.md b/api/MAVEN-REPO.md index f451168..eeab191 100644 --- a/api/MAVEN-REPO.md +++ b/api/MAVEN-REPO.md @@ -24,26 +24,35 @@ Extract secret key for the Gradle signing plugin: $ gpg2 --export-secret-keys > secring.gpg ``` -## Build and publish to Central Repository +## Gradle build and publish to Central Repository -> Note that all of this can be run from the main 'applesingle' folder. +> NOTE: The build has been updated to allow snapshots to be published. These appear to be automatically available. 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 + ./gradlew clean build + +BUILD SUCCESSFUL in 8s +91 actionable tasks: 91 executed ``` -Upload: +Publish: ```bash -$ ./gradlew uploadArchives +$ ./gradlew publish -BUILD SUCCESSFUL in 10s -10 actionable tasks: 1 executed, 9 up-to-date +BUILD SUCCESSFUL in 8s +2 actionable tasks: 2 executed +``` + +The can also be combined: + +```bash +$ ./gradlew clean build publish + +BUILD SUCCESSFUL in 16s +93 actionable tasks: 93 executed ``` Then follow "releasing the deployment" below. @@ -54,6 +63,7 @@ Just a reminder! # References -* http://central.sonatype.org/pages/gradle.html +* http://central.sonatype.org/pages/gradle.html (NOTE: Documentation is out of date) * http://central.sonatype.org/pages/releasing-the-deployment.html -* For all the other little pieces, Google is your friend. ;-) +* https://docs.gradle.org/current/userguide/publishing_maven.html +* For all the other little pieces, Google is your friend. ;-) \ No newline at end of file