api / org.gradle.api.artifacts.result / ResolutionResult / getRoot

getRoot

abstract fun getRoot(): ResolvedComponentResult

Gives access to the root of resolved dependency graph. You can walk the graph recursively from the root to obtain information about resolved dependencies. For example, Gradle's built-in 'dependencies' task uses this to render the dependency tree.

Return
the root node of the resolved dependency graph