Recommendation for maven plugin to automatically bump the project.version based on conventional commits

542 Views Asked by At

When working with nx monorepos I can make use of a plugin (https://github.com/jscutlery/semver) that automatically bumps the package.json versions using semver 2.0.0 based on the commit messages made.

Is there something similar for maven?

1

There are 1 best solutions below

0
On

Yes that exists. Have a look at this custom VersionPolicy (= next version calculator) for the maven-release-plugin that does this using the Conventional Commits model.

https://github.com/nielsbasjes/conventional-commits-maven-release