Skip to content

Commit

Permalink
Updating Maven release notes with a copy from AppleCommander.
Browse files Browse the repository at this point in the history
  • Loading branch information
a2geek committed Oct 28, 2023
1 parent 45b57ce commit 9d676a5
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions api/MAVEN-REPO.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Publish:

```bash
$ ./gradlew publish

BUILD SUCCESSFUL in 8s
2 actionable tasks: 2 executed
```

Upload:
The can also be combined:

```bash
$ ./gradlew uploadArchives
$ ./gradlew clean build publish

BUILD SUCCESSFUL in 10s
10 actionable tasks: 1 executed, 9 up-to-date
BUILD SUCCESSFUL in 16s
93 actionable tasks: 93 executed
```

Then follow "releasing the deployment" below.
Expand All @@ -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. ;-)

0 comments on commit 9d676a5

Please sign in to comment.