Repository uses type

MSAL

Marks all files in a repository where any source file uses a matching type. Intended as a precondition for recipes that change a dependency together with the code using it, when modules that do not use the type themselves, such as a parent pom managing the version, must change too.

org.openrewrite.java.migrate.search.RepositoryUsesType

Required

A fully-qualified type name, optionally with a * wildcard to match any type in a package or .. to match types in subpackages as well.

mod run . --recipe=org.openrewrite.java.migrate.search.RepositoryUsesType \ -P fullyQualifiedTypeName='org.apache.commons.fileupload.servlet.*'

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