Increment Maven project version

Apache 2.0

Increase Maven project version by incrementing either the major, minor, or patch version as defined by semver. Other versioning schemes are not supported.

org.openrewrite.maven.IncrementProjectVersion

Required

The group ID of the Maven project to change its version. This can be a glob expression.

The artifact ID of the Maven project to change its version. This can be a glob expression.

MAJOR increments the first digit, MINOR increments the second digit, and PATCH increments the third digit.

mod run . --recipe=org.openrewrite.maven.IncrementProjectVersion \ -P groupId=org.openrewrite \ -P artifactId='*' \ -P digit=PATCH

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.