Unable to see dependency tree with gradle w OR gradle

I am using the latest version of gradle (1.12). In the project root directory, I run the following command, which, as described in this @CommonsWare answer , should contain a dependency tree:

When I run it, this happens:

$ gradle -q dependencies

------------------------------------------------------------ Root project ------------------------------------------------------------ No configurations 

The project in question is an Android gradle project created from scratch using the new project wizard built into Android Studio. My top level build.gradle file is as follows:

 buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.10.+' } } allprojects { repositories { maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() } } subprojects { repositories { flatDir { dirs "$rootDir/libs" } } } 

And my settings.gradle file looks like this:

 include ':app', ':facebook', 'pullToRefresh' 

From what I understand, this is a very simple gradle configuration. Does anyone have an idea why the tree of the dependency tree returns nothing? Let me know if I need to provide more information.

+48
android android gradle
Jun 03 '14 at 23:01
source share
1 answer

Your top level build.gradle has no dependencies. You will need to run (from the project root directory):

 ./gradlew app:dependencies 
+105
Jun 04 '14 at 0:15
source share



All Articles