Package org.gradle.api.artifacts
Interface VariantMetadata
- All Superinterfaces:
- HasAttributes,- HasConfigurableAttributes<VariantMetadata>
Represents the metadata of one variant of a component, see 
ComponentMetadataDetails.withVariant(String, Action).- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptionvoidwithCapabilities(Action<? super MutableCapabilitiesMetadata> action) Register a rule that modifies the capabilities of this variant.voidwithDependencies(Action<? super DirectDependenciesMetadata> action) Register a rule that modifies the dependencies of this variant.voidwithDependencyConstraints(Action<? super DependencyConstraintsMetadata> action) Register a rule that modifies the dependency constraints of this variant.voidwithFiles(Action<? super MutableVariantFilesMetadata> action) Register a rule that modifies the artifacts of this variant.Methods inherited from interface org.gradle.api.attributes.HasAttributesgetAttributesMethods inherited from interface org.gradle.api.attributes.HasConfigurableAttributesattributes
- 
Method Details- 
withDependenciesRegister a rule that modifies the dependencies of this variant.- Parameters:
- action- the action that performs the dependencies adjustment
 
- 
withDependencyConstraintsRegister a rule that modifies the dependency constraints of this variant.- Parameters:
- action- the action that performs the dependency constraints adjustment
- Since:
- 4.5
 
- 
withCapabilitiesRegister a rule that modifies the capabilities of this variant.- Parameters:
- action- the action that performs the capabilities adjustment
- Since:
- 4.7
 
- 
withFilesRegister a rule that modifies the artifacts of this variant.- Parameters:
- action- the action that performs the files adjustment
- Since:
- 6.0
 
 
-