Find Maven dependency
Apache 2.0Finds first-order dependency uses, i.e. dependencies that are defined directly in a project. Each match is also recorded as a row in the DependenciesDeclared data table.
org. openrewrite. maven. search. FindDependencyRequired
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. FindDependency \
-P groupId= com. google. guava \
-P artifactId= guavaInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.