api / org.gradle.api.artifacts / DependencyConstraint / getReason

getReason

abstract fun getReason(): String

Returns a reason why this dependency constraint should be used, in particular with regards to its version. The dependency report will use it to explain why a specific dependency was selected, or why a specific dependency version was used.

Return
a reason to use this dependency constraint

Since
4.6