LinuxCommandLibrary

gradle-dependencies

Gradle dependency tree viewer

TLDR

List dependencies

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

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.

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community