Is there any way to visualize the library dependencies of a gradle project within IDEA?

Answered

With 

gradle dependencies

I can see an ascii-art graph of the library dependencies. 

 

... thousands of line 
+--- org.apache.hadoop:hadoop-common:2.8.0
| +--- org.apache.hadoop:hadoop-annotations:2.8.0
| +--- com.google.guava:guava:11.0.2 -> 16.0.1
| +--- commons-cli:commons-cli:1.2
| +--- org.apache.commons:commons-math3:3.1.1
| +--- xmlenc:xmlenc:0.52
| +--- org.apache.httpcomponents:httpclient:4.5.2 -> 4.5.5 (*)
| +--- commons-codec:commons-codec:1.4 -> 1.10
| +--- commons-io:commons-io:2.4
| +--- commons-net:commons-net:3.1
| +--- commons-collections:commons-collections:3.2.2
| +--- javax.servlet:servlet-api:2.5
| +--- org.mortbay.jetty:jetty:6.1.26
| | +--- org.mortbay.jetty:jetty-util:6.1.26
| | \--- org.mortbay.jetty:servlet-api:2.5-20081211
... hundreds of lines
| +--- com.google.protobuf:protobuf-java:2.5.0
| +--- com.google.code.gson:gson:2.2.4
| +--- org.apache.hadoop:hadoop-auth:2.8.0

Is there any way to get this as a view inside IDEA. I would be especially interested in  being able to select a JAR  that I know is a transitive dependency and figure out what other JARs are pulling that as a dependency. 

For example, in my project I can see ( using gradle via CLI) that I have a transitive dependency on com.google.code.gson:gson:2.2.4 and I can see with a bit of effort that org.apache.hadoop:hadoop-common:2.8.0 is the one that pulls gson. 

I want to do the same analysis within IDEA, is it possible? 

0
1 comment

Hello Ruben,

We have related request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-119905

Feel free to vote for it and leave suggestions in comments.

 

0

Please sign in to leave a comment.