Find Maven dependency management entry

Apache 2.0

Finds first-order dependency management entries, i.e. dependencies that are defined directly in a project.

org.openrewrite.maven.search.FindManagedDependency

Required

The first part of a dependency coordinate com.google.guava:guava:VERSION. Supports glob.

The second part of a dependency coordinate com.google.guava:guava:VERSION. Supports glob.

Optional

An exact version number or node-style semver selector used to select the version number.

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

mod run . --recipe=org.openrewrite.maven.search.FindManagedDependency \ -P groupId=com.google.guava \ -P artifactId=guava

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