I have a bash script for switching java versions. To make sure I'm on Java 8 for example,
jvm -u 8
source jvm --home
Then running
mvn clean test jacoco:report
will test and create a coverage report at target/site/jacoco/index.html
- Increment version identifier in
pom.xml
and commit. - Tag the commit with the version number; e.g.:
git tag v1.4.0
- When pushed, GitHub Action "Create Release" will create a draft Release.
- GitHub action "Publish to the Maven Central Repository" was intended to respond to that and execute the build and deploy. However that doesn't work because the GitHub Release is created as draft. Instead, just run it manually. (I imagine there's a way to automate this to be much smoother, but I'm an Actions noob so it will wait for now.)
- Log in to Maven Central Repository.
- Find the project in Staging Repositories.
- Close the repo, wait a few, then release it.
- (More manual steps in need of automation...) Download the artifacts (jar, source, and javadoc) and upload them to the GitHub Release created earlier. Add a changelog for the release. Publish it.