Android Project/Module Dependencies
This is the command that allows gradle to print a tree with all module/configuration dependencies:
./gradlew module:dependencies --configuration androidTestCompile
Output example:
androidTestCompile - Classpath for compiling the androidTest sources.
+--- com.android.support.test:runner:0.2
| +--- junit:junit-dep:4.10
| | \--- org.hamcrest:hamcrest-core:1.1
| +--- com.android.support.test:exposed-instrumentation-api-publish:0.2
| \--- com.android.support:support-annotations:22.0.0
+--- com.android.support.test:rules:0.2
| \--- com.android.support.test:runner:0.2 (*)
+--- com.android.support.test.espresso:espresso-core:2.1
| +--- com.android.support.test:rules:0.2 (*)
| +--- com.squareup:javawriter:2.1.1
| +--- org.hamcrest:hamcrest-integration:1.1
| | \--- org.hamcrest:hamcrest-core:1.1
| +--- com.android.support.test.espresso:espresso-idling-resource:2.1
| +--- org.hamcrest:hamcrest-library:1.1
| | \--- org.hamcrest:hamcrest-core:1.1
| +--- javax.inject:javax.inject:1
| +--- com.google.code.findbugs:jsr305:2.0.1
| +--- com.android.support.test:runner:0.2 (*)
| +--- javax.annotation:javax.annotation-api:1.2
| \--- org.hamcrest:hamcrest-core:1.1
\--- com.android.support.test.espresso:espresso-contrib:2.1
+--- com.android.support:recyclerview-v7:22.0.0
| \--- com.android.support:support-v4:22.0.0
+--- com.android.support:support-v4:22.0.0
\--- com.android.support.test.espresso:espresso-core:2.1 (*)
(*) - dependencies omitted (listed previously)
This is quite great to analyze the final chosen version's dependencies when there are different versions of one dependency required among all dependencies(quite confuse and difficult to explain) ;).
- Log in to post comments