api / org.gradle.api.artifacts.result / ArtifactResolutionResult / getComponents

getComponents

abstract fun getComponents(): MutableSet<ComponentResult>

Return a set of ComponentResult instances representing all requested components.

Each element in the returned set is declared as an opaque ComponentResult. However each element in the result will also implement one of the following interfaces:

Return
the set of results for all requested components