Remove redundant explicit dependencies and versions
Apache 2.0Remove explicitly-specified dependency versions that are managed by a Gradle platform, enforcedPlatform or the io.spring.dependency-management plugin. Also removes redundant direct dependencies and dependency constraints that are already satisfied by transitive dependencies.
org. openrewrite. gradle. RemoveRedundantDependencyVersionsOptional
Group glob expression pattern used to match dependencies that should be managed.Group is the first part of a dependency coordinate com.google.guava:guava:VERSION.
Artifact glob expression pattern used to match dependencies that should be managed.Artifact is the second part of a dependency coordinate com.google.guava:guava:VERSION.
Only remove the explicit version if the managed version has the specified comparative relationship to the explicit version. For example, gte will only remove the explicit version if the managed version is the same or newer. Default eq.
mod run . --recipe= org. openrewrite. gradle. RemoveRedundantDependencyVersionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.