api / org.gradle.api.artifacts.result / ResolvedDependencyResult / getSelected

getSelected

abstract fun getSelected(): ResolvedComponentResult

Returns the selected component. This may not necessarily be the same as the requested component. For example, a dynamic version may have been requested, or the version may have been substituted due to conflict resolution, or by being forced, or for some other reason.