Remove redundant explicit dependency and plugin versions
Apache 2.0Remove explicitly-specified dependency/plugin versions when a parent POM's dependencyManagement/pluginManagement specifies the version.
org. openrewrite. maven. RemoveRedundantDependencyVersionsOptional
Group glob expression pattern used to match dependencies that should be managed.Group is the first part of a dependency coordinate com.google.guava:guava:VERSION.
Artifact glob expression pattern used to match dependencies that should be managed.Artifact is the second part of a dependency coordinate com.google.guava:guava:VERSION.
Deprecated; use onlyIfManagedVersionIs instead. Only remove the explicit version if it exactly matches the managed dependency version. When false explicit versions will be removed if they are older than or equal to the managed dependency version. Default true.
Only remove the explicit version if the managed version has the specified comparative relationship to the explicit version. For example, gte will only remove the explicit version if the managed version is the same or newer. Default eq.
Accepts a list of GAVs. Dependencies matching a GAV will be ignored by this recipe. GAV versions are ignored if provided. Separate values with commas.
mod run . --recipe= org. openrewrite. maven. RemoveRedundantDependencyVersionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.