如何在运行时 Gradle 检查依赖列表?

How to check dependency list at runtime Gradle?

我试图在使用 Intellij 开发的 Android 项目中查找任何重复的库。

我尝试在项目的根目录中运行 ./gradlew dependencies,但我只得到以下内容:

WARNING [Project: :app] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING [Project: :facebookSDK] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING [Project: :myLibrary] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING [Project: :sherlockNavigationDrawer] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING [Project: :viewPagerLibrary] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING [Project: :myapp] WARNING: runProguard is deprecated (and will soon stop working); change to "minifyEnabled" instead
WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages
WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
:dependencies

------------------------------------------------------------
Root project
------------------------------------------------------------

No configurations

BUILD SUCCESSFUL  

Gradle 版本为 2.1

根项目没有任何依赖项。您需要对您的子项目之一执行 dependencies 任务。

$ ./gradlew :app:dependencies