Let's assume I have the following libraries defined in a gradle.build file:
dependencies {
compile 'com.google.android.gms:play-services:7.8.0'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:cardview-v7:23.0.0'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.facebook.android:facebook-android-sdk:4.8.2'
//...
}
Now, some of these libraries are dependent on other libraries. Given the library name, is there a way to know the list of libraries the given library depend on? I am only interested on the names and versions of those libraries for a webapp project. I tries reading Bintray API but couldn't find the way to do it there.
EDIT:
I'm not looking for the dependency tree of my app (i.e. the gradle dependencies
command). I'm just interested in building a web app, where the user provides any project (hosted in Maven on JCenter) and the web app will return the dependency tree.
Just take the pom file of the library and run mvn dependency:tree
on it with outputType
parameter set to graphml
.