public interface ArtifactSelectionDetails
Modifier and Type | Method | Description |
---|---|---|
List<DependencyArtifactSelector> |
getRequestedSelectors() |
Returns the list of requested artifacts for the dependency
|
boolean |
hasSelectors() |
Returns true if the dependency has requested a special artifact (either classifier, type or extension)
|
void |
selectArtifact(String type,
String extension,
String classifier) |
Adds an artifact to substitute.
|
void |
selectArtifact(DependencyArtifactSelector selector) |
Adds an artifact to substitute.
|
void |
withoutArtifactSelectors() |
Removes all artifact selectors, if any.
|
boolean hasSelectors()
List<DependencyArtifactSelector> getRequestedSelectors()
void withoutArtifactSelectors()
void selectArtifact(String type, @Nullable String extension, @Nullable String classifier)
getRequestedSelectors()
and add them using
selectArtifact(DependencyArtifactSelector)
.type
- the type of the artifact being queriedextension
- the extension, defaults to the typeclassifier
- the classifier, defaults to null (no classifier)void selectArtifact(DependencyArtifactSelector selector)
selectArtifact(String, String, String)