Package org.gradle.api.artifacts
Schnittstelle VariantMetadata
- Alle Superschnittstellen:
HasAttributes,HasConfigurableAttributes<VariantMetadata>
Represents the metadata of one variant of a component, see
ComponentMetadataDetails.withVariant(String, Action).- Seit:
- 4.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidwithCapabilities(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.Von Schnittstelle geerbte Methoden org.gradle.api.attributes.HasAttributes
getAttributesVon Schnittstelle geerbte Methoden org.gradle.api.attributes.HasConfigurableAttributes
attributes
-
Methodendetails
-
withDependencies
Register a rule that modifies the dependencies of this variant.- Parameter:
action- the action that performs the dependencies adjustment
-
withDependencyConstraints
Register a rule that modifies the dependency constraints of this variant.- Parameter:
action- the action that performs the dependency constraints adjustment- Seit:
- 4.5
-
withCapabilities
Register a rule that modifies the capabilities of this variant.- Parameter:
action- the action that performs the capabilities adjustment- Seit:
- 4.7
-
withFiles
Register a rule that modifies the artifacts of this variant.- Parameter:
action- the action that performs the files adjustment- Seit:
- 6.0
-