Using gradle to find dependency tree

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

    For me, it was simply one command

    in build.gradle add plugin

    apply plugin: 'project-report'
    

    and then go to cmd and run following command

    ./gradlew htmlDependencyReport
    

    This gives me an HTML report WOW Html report

提交回复
热议问题