This rule should find and remove and a dependency declaration where
- the exact same dependency is declared multiple times in this same module (leave one of them)
- the same dependency is declared in an upstream source set in the same module (if
api and testImplementation, then testImplementation is a redeclaration)
- the same dependency is declared for different configurations of the same source set -- typically
api and implementation. In this case, the upstream config (api) wins.
This rule should find and remove and a dependency declaration where
apiandtestImplementation, thentestImplementationis a redeclaration)apiandimplementation. In this case, the upstream config (api) wins.