api / org.gradle.api.artifacts / Dependency / getReason

getReason

@Incubating abstract fun getReason(): String

Returns a reason why this dependency 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

Since
4.6