In the code examples below, I assume you are working in a multi-project build and one of the subprojects in this build is named "app". If you are working in a single-project build, then the commands you want to run are of the formThe first and simplest command you can run to print a dependency graph for each and every configuration in your project is:
gradle someTaskand not
If you want to print a dependency graph for only one of the configurations in your project, then the command to run is:
To print a list of all of the configurations in your project, the command to run is:
gradle :app:dependencies --configuration someConfiguration
Lastly, if all you want is to get insight into a single dependency within a single configuration in your project, then the comamnd to run is:
gradle :app:dependencies | grep ' - '
./gradlew :app:dependencyInsight --configuration someConfiguration --dependency someGroup:someName