How to check dependency tree of a gradle project

Views: 572 Ask New Question


On By

1 Answer


1. If you have gradle installed on your machine

on root project

gradle <project-name>:dependencies

on sub projects

gradle <project-name>:<sub-project-name>:dependencies

2. If you are packaging gradlew in your project

on root project

./gradle <project-name>:dependencies

on sub projects

./gradle <project-name>:<sub-project-name>:dependencies

Note: You can add the following flags to check the dependencies at runtime/ compile time

Checking compile time dependencies

--configuration compile

Checking runtime dependencies

--configuration runtime
On By


Answer This Question