LinuxCommandLibrary

gradle-dependencyinsight

Gradle dependency tracing tool

TLDR

Trace dependency

$ gradle dependencyInsight --dependency [library-name]
copy
Specific configuration
$ gradle dependencyInsight --configuration [compileClasspath] --dependency [guava]
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 task is essential for debugging dependency issues and understanding why specific versions are selected during resolution.

PARAMETERS

--dependency NAME

Dependency to trace.
--configuration NAME
Configuration to inspect.
--help
Display help information.

CAVEATS

Requires --dependency flag. Use with --configuration for accuracy. Helps resolve conflicts.

HISTORY

The dependencyInsight task is a standard Gradle diagnostic for understanding dependency resolution.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community