variant Of
abstract fun variantOf(dependencyProvider: Provider<MinimalExternalModuleDependency>, variantSpec: Action<in ExternalModuleDependencyVariantSpec>): Provider<MinimalExternalModuleDependency>(source)
Allows fine-tuning what variant to select for the target dependency. This can be used to specify a classifier, for example.
Return
a new dependency provider targeting the configured variant
Since
6.8
Parameters
dependency Provider
the dependency provider
variant Spec
the variant specification
open fun variantOf(dependencyProviderConvertible: ProviderConvertible<MinimalExternalModuleDependency>, variantSpec: Action<in ExternalModuleDependencyVariantSpec>): Provider<MinimalExternalModuleDependency>(source)
Allows fine-tuning what variant to select for the target dependency. This can be used to specify a classifier, for example.
Return
a new dependency provider targeting the configured variant
Since
7.3
Parameters
dependency Provider Convertible
the dependency provider convertible that returns the dependency provider
variant Spec
the variant specification