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.

because

abstract fun because(description: String): DependencyResolveDetails(source)

Sets a human readable description for the reason the component is selected. The description will only be used if the rule is actually selecting a target, either using useVersion or useTarget

Return

this details object

Since

4.5

Parameters

description

a description of the selection reason