How to find which library is using some particular dependency?

Answered

I see that in the version 2021.2 there is some improvement in terms of dependency management (Gradle/maven), however I am still not able to achieve one basic thing, which I am missing in IntelliJ for ages - if for example sonarqube complains about some library having vulnerabilities, how can I check which gradle/maven dependency is using this library?

In maven I would do mvn dependency:tree , however I would like to have something which can IDE provide. Thank you.

1 comment
Comment actions Permalink

In Dependencies diagram you can use Ctrl(Cmd)+F to search for a library by name:

and F4 to navigate to the declaration of this dependency in pom.xml file.

We are currently working on a better dependencies introspection for Maven and Gradle project, so hope that it will become a lot easier to do something line this soon.

You can also try Maven helper plugin https://plugins.jetbrains.com/plugin/7179-maven-helper

0

Please sign in to leave a comment.