api / org.gradle.api.artifacts / DependencyResolveDetails / because

because

abstract fun because(description: String): DependencyResolveDetails

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(String) or #useTarget(Object)

Parameters

description - a description of the selection reason

Return
this details object

Since
4.5