What is the Gradle artifact dependency graph command?

前端 未结 8 1398
独厮守ぢ
独厮守ぢ 2020-11-28 03:34

I read this comment in the Gradle docs:

To deal with problems due to version conflicts, reports with dependency graphs
are also very helpful. Such reports ar         


        
相关标签:
8条回答
  • 2020-11-28 04:26

    In recent versions of Gradle (ie. 5+), if you run your build with the --scan flag, it tells you all kinds of useful information, including dependencies, in a browser where you can click around.

    gradlew --scan clean build
    

    It will analyze the crap out of what's going on in that build. It's pretty neat.

    0 讨论(0)
  • 2020-11-28 04:28

    For those looking to debug gradle dependencies in react-native projects, the command is (executed from projectname/android)

    ./gradlew app:dependencies --configuration compile
    
    0 讨论(0)
提交回复
热议问题