I've added following custom task into my build.gradle
file In order to print out dependencies of a dependency.
// This part is useful for finding conflict resolution(s) between dependencies in order to exclude them.
// You can change the custom value and run following command in terminal:
// ./gradlew passenger-sdk:dependencies --configuration custom
configurations {
custom
}
dependencies {
custom 'com.google.android.gms:play-services-analytics:7.3.0'
}
So the result is:
$ ./gradlew passenger-sdk:dependencies --configuration custom
:passenger-sdk:dependencies
------------------------------------------------------------
Project :passenger-sdk
------------------------------------------------------------
custom
\--- com.google.android.gms:play-services-analytics:7.3.0
\--- com.google.android.gms:play-services-base:7.3.0
\--- com.android.support:support-v4:22.0.0
\--- com.android.support:support-annotations:22.0.0
BUILD SUCCESSFUL
Total time: 1.681 secs
I want to exclude all of its dependencies since I have them. Should I exclude all three dependencies play-services-base
and support-v4
and support-annotations
or just play-services-base
is enough?