Using gradle to find dependency tree

后端 未结 14 1738
-上瘾入骨i
-上瘾入骨i 2020-11-22 03:20

Is it possible to use gradle to produce a tree of what depends on what?

I have a project and would like to find out all the dependencies so I may be able to prune it

14条回答
  •  难免孤独
    2020-11-22 03:21

    If you want to visualize your dependencies in a graph you can use gradle-dependency-graph-generator plugin.

    Generally the output of this plugin can be found in build/reports/dependency-graph directory and it contains three files (.dot|.png|.svg) if you are using the 0.5.0 version of the plugin.

    Example of dependences graph in a real app (Chess Clock):

提交回复
热议问题