ModuleCheck icon indicating copy to clipboard operation
ModuleCheck copied to clipboard

new rule: redeclared dependency

Open RBusarow opened this issue 3 years ago • 0 comments

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.

RBusarow avatar Apr 12 '22 16:04 RBusarow