ModuleCheck
ModuleCheck copied to clipboard
new rule: redeclared dependency
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
apiandtestImplementation, thentestImplementationis a redeclaration) - the same dependency is declared for different configurations of the same source set -- typically
apiandimplementation. In this case, the upstream config (api) wins.