Releasing is hard, so I'm recording this here as a reference. This walk-thru is based on the Sonatype release guide since Sonatype is where the official repository is for AndHow . After a new release, Sonatype automatically copies them over to Maven Central.
Currently requires running on Java 1.8 to ensure that 1.8 compatible jars are created (Only true for the 0.4.x releases)
(Verify the '-P' argument matches the 'releaseProfiles' of the release plugin in the main pom. This ensures this test install run matches the actual release run)
This will verify if all configuration for GPG is working correctly. Check your local ~/.m2/repository/org/yarnandtail/andhow/[version] to see if there are .asc signing files for each artifact, as well as javadocs and sources. It should look like this:
Verify the samples project runs against the new snapshot locally using JDK 1.8 and JDK 16 (and more)
Verify the 'shaded' andhow.pom file does not have dependencies in it
Sanity check size of andhow.jar
The andhow-samples project can be tried with different compile flags as well when using JDK9+
Snapshot deploy to Nexus
This extra verification just ensures the gpg signing and uploads all work before actually doing the release:
Snapshot Checks
Delete the local .m2/repository/..../yarnandtail and verify andhow-samples can pull down and build against the snapshot. Also check source and javadoc download.
Verify the samples project runs against the new snapshot on Travis CI
Select the Staging Repositories on the left navigation. I only see the latest uploaded staged release when I do this. Check it out... maybe download and try it.
It sounds like its possible to do the release from command line via the nexus plugin:
Or In the UI, the staging repository needs to be 'closed' (no further additions), then 'Released'.
Verify the release has propagated
After release, the artifacts should show up in the central Maven repo - It may take some time. Urls to check: