Remove duplicate Gradle dependencies

Apache 2.0

Removes duplicated dependency declarations from the dependencies block of build.gradle and build.gradle.kts files. A declaration is only considered a duplicate when an earlier declaration in the same dependencies block uses the same configuration and the same coordinates, including version, classifier and extension, whether those are written as a single string or as separate arguments. Declarations that differ only by version are left untouched.

org.openrewrite.gradle.RemoveDuplicateDependencies
mod run . --recipe=org.openrewrite.gradle.RemoveDuplicateDependencies

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