Using gradle to find dependency tree

后端 未结 14 1722
-上瘾入骨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:22

    I also found useful to run this:

    ./gradlew dI --dependency 
    

    This shows how are being dependencies resolved (dependencyInsight) and help you debugging into where do you need to force or exclude libraries in your build.gradle

    See: https://docs.gradle.org/current/userguide/tutorial_gradle_command_line.html

提交回复
热议问题