how to find parent transitive dependencies in Intellij IDEA

Viewed 5029

I can see Gradle dependencies of my project having 2 versions of google guice library (com.google.inject:guice:4.0 and com.google.inject:guice:3.0 ) i am trying to find from which parent library these are imported but i failed to find in intelli IDEA. i also tried Dependency Viewer and Analyze dependencies options in Intellij IDEA but not helped.can you please help how to find parent library of this guice lib.

5 Answers

In intellij IDEA try help:dependencies command:

enter image description here

Then use simple search (Ctrl+F) to find your dependencies:

enter image description here

I have the same issue as Engineer Dollery - I don't see a proper "Show Dependencies" button. I do see Show Diagram ... and there is an option to show basic dependencies, but can't find transitive paths.

This is one place where Netbeans shines - if you open the pom.xml, you can hit the 'Graph' button and it shows a node diagram showing how dependencies are pulled in.

In terminal I just use grep command:

gradle my-module:dependencies |grep -B 4 my-dependency

where -B parameter is the number of previous lines to display in otuput

Related