Find declared dependencies after the run's edits

Apache 2.0

Marks the build file declarations that still bring a dependency: dependencies, managed versions, BOMs, platforms and version catalog entries, and dependencies that brought it transitively when the build was resolved and still read the same. Each is marked in the file that declares it, as that file reads after earlier recipes in the run, so dependencies a parent pom, root subprojects block or catalog no longer declares are not reported in child modules. Dependencies on the project's own groups are not followed, since the module declaring the match is marked itself.

org.openrewrite.aws.build.FindDeclaredDependency

Required

Glob for the group ID.

Glob for the artifact ID, or several separated by commas.

Optional

A version selector such as 2.x. Declarations without a version they resolve themselves are not matched when it is set.

mod run . --recipe=org.openrewrite.aws.build.FindDeclaredDependency \ -P groupIdPattern=org.springframework.cloud \ -P artifactIdPattern='spring-cloud-aws*,spring-cloud-starter-aws*'

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