I have project P
. P
depends on library L1
, and L1
depends on library T1
.
Now, an unsuspecting developer comes along and modifies the code of P
to include references to T1
. This works, since P
has a transitive dependency on T1
in the build, therefore T1
is available in P
.
However, I would like Gradle to show me a report or warning that T1
should really be added as a direct dependency of P
in the build, otherwise the dependency graph isn't really correct: after our hapless developer added his code, P
references classes in T1
but does not depend on it explicitly.
How can I do this?