LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gradle-dependencyinsight

Gradle dependency tracing tool

TLDR

Trace a dependency to see why it is included
$ gradle dependencyInsight --dependency [library-name]
copy
Trace a dependency in a specific configuration
$ gradle dependencyInsight --configuration [compileClasspath] --dependency [guava]
copy
Show only a single path to each dependency (useful for large graphs)
$ gradle dependencyInsight --dependency [library-name] --singlepath
copy
Trace a dependency in a specific subproject
$ gradle :[subproject]:dependencyInsight --dependency [library-name]
copy

SYNOPSIS

gradle dependencyInsight [options]

DESCRIPTION

gradle dependencyInsight traces why a specific dependency appears in the build. It shows the path from direct dependencies to the transitive inclusion, revealing how version conflicts are resolved.The --dependency value is matched partially against the group, name, or version of dependencies, so a query like `guava` will match `com.google.guava:guava:31.1-jre`.The task is essential for debugging dependency issues and understanding why specific versions are selected during resolution.

PARAMETERS

--dependency NAME

Required. The dependency to trace. Matches partially against group, name, or version.
--configuration NAME
Configuration to inspect (e.g., compileClasspath, runtimeClasspath). Defaults to compileClasspath for Java projects.
--singlepath
Show only one path to each dependency instead of all paths. Useful for large dependency graphs.

INSTALL

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

CAVEATS

The --dependency flag is required. Without --configuration, the task defaults to compileClasspath in Java projects. The dependency value uses partial matching, which may return unexpected results for common names.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid