0

In our composite project someone depends on asm-4 and asm-3 transitively.

I would like to know who bring these transitive dependencies to the project.

Is there any way to draw a graph of dependencies or somehow find who depends on asm-3/asm-4

Note: asm dependency is a buildSrc/buildScript dependency, not the build's process itself.

Korniltsev Anatoly
  • 3,676
  • 2
  • 26
  • 37

2 Answers2

1

Type gradle dependencies to see the whole graph. It's also possible to exclude dependencies. Search for Excluding transitive dependencies.

Opal
  • 81,889
  • 28
  • 189
  • 210
  • Yeah, I know about this task. This is exactly what I need. But it does not work on buildSrc project. Project 'buildSrc' not found in root project. – Korniltsev Anatoly Apr 07 '14 at 14:28
  • No idea how to display `dependencies` for `buildSrc` unfortunately. But I suppose that dependencies exclusion works exactly same. – Opal Apr 07 '14 at 14:35
  • Can You please post a sample project with dir structure? – Opal Apr 07 '14 at 14:42
1

cd into buildSrc, then run gradle dependencyInsight --configuration runtime --dependency asm.

Peter Niederwieser
  • 121,412
  • 21
  • 324
  • 259