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.

setTransitive

abstract fun setTransitive(transitive: Boolean): ModuleDependency(source)

Sets whether this dependency should be resolved including or excluding its transitive dependencies. The artifacts belonging to this dependency might themselves have dependencies on other artifacts. The latter are called transitive dependencies.

Return

this

Since

0.7

Parameters

transitive

Whether transitive dependencies should be resolved.