gradle-dependencies

Gradle dependency tree viewer

TLDR

List dependencies
$ gradle dependencies
Show specific configuration
$ gradle dependencies --configuration [compileClasspath]
Module dependencies
$ gradle :module:dependencies
Output to file
$ gradle dependencies > deps.txt

SYNOPSIS

gradle dependencies [options]

DESCRIPTION

gradle dependencies displays the dependency tree for a project. It shows all direct and transitive dependencies with their versions and conflict resolution.The output shows dependency hierarchies for different configurations (compile, runtime, test), helping to understand dependency chains and version conflicts.

PARAMETERS

--configuration NAME

Specific configuration to show.
--help
Display help information.

INSTALL

sudo pacman -S gradle
sudo apk add gradle
brew install gradle
nix profile install nixpkgs#gradle

CAVEATS

Large trees can be overwhelming. Use --configuration to filter. Check for version conflicts.

HISTORY

The dependencies task is a standard Gradle diagnostic task for understanding project dependencies.

SEE ALSO

gradle(1), gradle-dependencyinsight(1)

RESOURCES

Documentation