Package org.gradle.api.artifacts
Interface CapabilityResolutionDetails
public interface CapabilityResolutionDetails
Gives access to the resolution details of a single capability conflict.
 This class may be used to resolve a capability conflict by either selecting
 explicitly one of the candidates, or selecting the one with the highest
 version of the capability.
- Since:
- 5.6
- 
Method SummaryModifier and TypeMethodDescriptionDescribes why a particular candidate is selected.Returns the list of components which are in conflict on this capabilityReturns the capability in conflictSelects a particular candidate to solve the conflict.select(ComponentVariantIdentifier candidate) Selects a particular candidate to solve the conflict.Automatically selects the candidate module which has the highest version of the capability.
- 
Method Details- 
getCapabilityCapability getCapability()Returns the capability in conflict
- 
getCandidatesList<ComponentVariantIdentifier> getCandidates()Returns the list of components which are in conflict on this capability
- 
selectSelects a particular candidate to solve the conflict. It is recommended to provide a human-readable explanation to the choice by calling thebecause(String)method- Parameters:
- candidate- the selected candidate
- Returns:
- this details instance
- Since:
- 6.0
 
- 
selectSelects a particular candidate to solve the conflict. It is recommended to provide a human-readable explanation to the choice by calling thebecause(String)method- Parameters:
- notation- the selected candidate
- Returns:
- this details instance
 
- 
selectHighestVersionCapabilityResolutionDetails selectHighestVersion()Automatically selects the candidate module which has the highest version of the capability. A reason is automatically added so callingbecause(String)would override the automatic selection description.- Returns:
- this details instance
 
- 
becauseDescribes why a particular candidate is selected.- Parameters:
- reason- the reason why a candidate is selected.
- Returns:
- this details instance
 
 
-