IntelliJ IDEA 2020.1 Help

Gradle dependencies diagram

You can work with Gradle dependencies in the diagram format. It might be helpful when you have a large project and want to see the whole picture of how dependencies (including the transitive ones) are connected inside the project.

  1. In the Gradle tool window, on the toolbar, click the Show Dependencies icon or select the Show Dependencies option from the context menu.
    the Show Dependencies option

    You can select the Show Dependecies Popup(Ctrl+Alt+U) option to open the graph in a separate window. To close the popup, press Escape.

  2. In the diagram window, IntelliJ IDEA displays all project dependencies including the transitive ones.
    Gradle dependencies diagram

    When you navigate to a dependency in a graph, IntelliJ IDEA displays its version, group and artifact IDs.

    Show dependency information

Use the diagram window toolbar to manage the diagram. You can change the size of a diagram, export it to a file, see only a part of the diagram you are interested in, and so on.

Change the visibility level

You can change the visibility level and, for example, view dependencies that have a specific scope (compile, test, and so on).

  1. In the diagram window, select the project and click the Change Visibility Level icon.

  2. From the list, select the dependency scope you want to see. IntelliJ IDEA displays only the specified dependency scope.

Show path from selection to root

You can select dependencies and see how they are connected to the root.

  1. In the diagram window, select a dependency for which you want to see the connection to a project. If you want to select several dependencies at once, hold down Shift and make the selection.

  2. On the toolbar, click the Show Path Root Selection icon.

Show neighbors of the selected nodes

You can select dependencies and see what other dependencies are connected to the selected nodes. It might be helpful if you have a large diagram and want to focus on just a part of it.

  1. In the diagram window, select a dependency you need. If you want to select several dependencies at once, hold down Shift and make the selection.

  2. On the toolbar, click the Show Neighbors of Selected Nodes.

Last modified: 15 April 2020