Dependency constraint to resolution rule
Apache 2.0Gradle dependency constraints are useful for managing the versions of transitive dependencies. Some plugins, such as the Spring Dependency Management plugin, do not respect these constraints. This recipe converts constraints into resolution rules, which can achieve similar effects to constraints but are harder for plugins to ignore.
org. openrewrite. gradle. DependencyConstraintToRulemod run . --recipe= org. openrewrite. gradle. DependencyConstraintToRuleInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.