Package org.gradle.api.capabilities
Schnittstelle MutableCapabilitiesMetadata
- Alle Superschnittstellen:
CapabilitiesMetadata
Describes the capabilities of a component in a mutable way.
This interface can be used to adjust the capabilities of a published component via
metadata rules (see
ComponentMetadataHandler.- Seit:
- 4.7
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddCapability(String group, String name, String version) Adds a new capability.Returns an immutable vew of the capabilities.voidremoveCapability(String group, String name) Removes a capability.Von Schnittstelle geerbte Methoden org.gradle.api.capabilities.CapabilitiesMetadata
getCapabilities
-
Methodendetails
-
addCapability
Adds a new capability. If a capability of the same (group, name) is found with a different version, an error will be thrown.- Parameter:
group- the group of the capabilityname- the name of the capabilityversion- the version of the capability
-
removeCapability
Removes a capability.- Parameter:
group- the group of the capabilityname- the name of the capability
-
asImmutable
CapabilitiesMetadata asImmutable()Returns an immutable vew of the capabilities.- Gibt zurück:
- an immutable view of the capabilities
-