Package org.gradle.api.artifacts
Schnittstelle CapabilitiesResolution
public interface CapabilitiesResolution
Allows configuring the capabilities resolution strategy.
When there's a capability conflict, this object will let you select
what to do in that situation. The configuration can either be global,
for any capability by calling the
all(Action) method,
or it can be specific to a capability by calling one of the withCapability(Object, Action),
withCapability(Capability, Action) or withCapability(String, String, Action) methods.- Seit:
- 5.6
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidall(Action<? super CapabilityResolutionDetails> action) Configures the resolution strategy of capability conflicts for all capabilities.voidwithCapability(Object notation, Action<? super CapabilityResolutionDetails> action) Configures the resolution strategy of a specific capability.voidwithCapability(String group, String name, Action<? super CapabilityResolutionDetails> action) Configures the resolution strategy of a specific capability.voidwithCapability(Capability capability, Action<? super CapabilityResolutionDetails> action) Configures the resolution strategy of a specific capability.
-
Methodendetails
-
all
Configures the resolution strategy of capability conflicts for all capabilities.- Parameter:
action- the configuration action
-
withCapability
Configures the resolution strategy of a specific capability. The capability version is irrelevant.- Parameter:
capability- a capability to configureaction- the configuration action
-
withCapability
Configures the resolution strategy of a specific capability.- Parameter:
group- the group of the capability to configurename- the name of the capability to configureaction- the configuration action
-
withCapability
Configures the resolution strategy of a specific capability.
-