api / org.gradle.api.artifacts.result / ResolvedComponentResult / getVariant

getVariant

abstract fun getVariant(): ResolvedVariantResult

Returns the variant that was selected for this component. When Gradle metadata is not used, this usually only refers to the target "configuration" (for an Ivy dependency) or "scope" (for a Maven dependency).

Return
the resolved variant for this component

Since
4.6