For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

setShowSinglePathToDependency

open fun setShowSinglePathToDependency(showSinglePathToDependency: Boolean)(source)

Tells if the report should only display a single path to each dependency, which can be useful when the graph is large. This is false by default, meaning that for each dependency, the report will display all paths leading to it.

This method is exposed to the command line interface. Example usage:

gradle dependencyInsight --single-path

Since

4.9