Package org.gradle.api.artifacts
Interface VariantSelectionDetails
public interface VariantSelectionDetails
Allows configuring the variant-aware selection aspects of a specific
 dependency. This includes the ability to substitute a dependency on
 a platform with another platform, or substitute a dependency without
 attributes with a dependency with attributes.
- Since:
- 6.6
- 
Method SummaryModifier and TypeMethodDescriptionvoidattributes(Action<? super AttributeContainer> configurationAction) Replaces the provided selector attributes with the attributes configured via the configuration action.voidcapabilities(Action<? super ModuleDependencyCapabilitiesHandler> configurationAction) Replaces the provided selector capabilities with the capabilities configured via the configuration action.voidSelects the enforced platform variant of a componentvoidlibrary()Selects the library variant of a componentvoidplatform()Selects the platform variant of a component
- 
Method Details- 
platformvoid platform()Selects the platform variant of a component
- 
enforcedPlatformvoid enforcedPlatform()Selects the enforced platform variant of a component
- 
libraryvoid library()Selects the library variant of a component
- 
attributesReplaces the provided selector attributes with the attributes configured via the configuration action.- Parameters:
- configurationAction- the configuration action
 
- 
capabilitiesReplaces the provided selector capabilities with the capabilities configured via the configuration action.- Parameters:
- configurationAction- the configuration action
 
 
-