To release pi4j use the following:
MVN_PROFILES=-P\!default ./autoReleaseBranch minor develop release/<version>this merges the develop branch into release/<version>, increments the current tag on the release/<version>
branch and then builds it locally. It uses mvn versions:set to set the version, and after the version is set,
does a test build to make sure all dependencies are really there.
The tag is signed by the configured git signing key. The key used can be checked with:
git config --get user.signingkeyTo deploy to maven, use the following commands:
MVN_PROFILES=-P\!default ./deployToMavenCentral.sh <version>This checks out the given tag and used the deploy profile to build and push the artifacts to maven central.
Now don't forget to publish the release on Maven central: https://central.sonatype.com/publishing/deployments
To create a new snapshot version on develop branch, use the following two commands:
mvn versions:set -DgenerateBackupPoms=false -DnewVersion="${newVersion}"
mvn clean installThen commit and push the changed pom.xml files.