logo image

How to check dependency tree of a gradle project

1 Answer

1 year ago by

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
1 year ago by Megamind