Find relocated dependencies
Apache 2.0Find Maven and Gradle dependencies, version catalog entries, Maven plugins, parents and extensions that have relocated to a new groupId or artifactId. Relocation information comes from the oga-maven-plugin maintained by Jonathan Lermitage, Filipe Roque and others.
This recipe makes no changes to any source file by default. Add changeDependencies=true to change dependencies whose relocated artifact publishes the same version, but note that you might need to run additional recipes to update imports and adopt other breaking changes.
org. openrewrite. java. dependencies. RelocatedDependencyCheckOptional
Whether to change dependencies and Maven plugins to their relocated groupId and artifactId. A declaration is only changed when the relocated artifact publishes the version in use, so that the build resolves the same code under its new coordinates. Otherwise it is marked, as are <parent> and <extension> declarations.
mod run . --recipe= org. openrewrite. java. dependencies. RelocatedDependencyCheckInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.