cd into buildSrc
, then run gradle dependencyInsight --configuration runtime --dependency asm
.
How to find who depends on specific artifact in gradle?
-
29-06-2023 - |
题
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.
解决方案
其他提示
Type gradle dependencies
to see the whole graph. It's also possible to exclude dependencies. Search for Excluding transitive dependencies.
不隶属于 StackOverflow