Upgrade Maven plugin version
Apache 2.0Upgrade the version of a plugin using Node Semver advanced range selectors, allowing more precise control over version updates to patch or minor releases.
org. openrewrite. maven. UpgradePluginVersionRequired
The first part of a dependency coordinate 'org.openrewrite.maven:rewrite-maven-plugin:VERSION'. Supports globs.
The second part of a dependency coordinate 'org.openrewrite.maven:rewrite-maven-plugin:VERSION'. Supports globs.
An exact version number or node-style semver selector used to select the version number. You can also use latest.release for the latest available version and latest.patch if the current version is a valid semantic version. For more details, you can look at the documentation page of version selectors
Optional
Allows version selection to be extended beyond the original Node Semver semantics. So for example,Setting 'version' to "25-29" can be paired with a metadata pattern of "-jre" to select Guava 29.0-jre
Whether to preserve an inherited managed version when the plugin declaration has no version. Set to false with addVersionIfMissing to override an older inherited version. When unset, inherited plugin management is preserved.
If the plugin is missing a version, add the latest release. Defaults to false.
mod run . --recipe= org. openrewrite. maven. UpgradePluginVersion \
-P groupId= org. openrewrite. maven \
-P artifactId= rewrite-maven-plugin \
-P newVersion=29. XInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.