# ArtifactSelectionDetails

interface ArtifactSelectionDetails(source)

Details about artifact dependency substitution: this class gives access to the original dependency requested artifacts, if any, and gives the opportunity to replace the original requested artifacts with other artifacts. This can typically be used whenever you need to substitute a dependency with uses a classifier to a non-classified dependency, or the other way around.

#### Since

6.6

## Functions

getRequestedSelectors
Link copied to clipboard
abstract fun getRequestedSelectors(): List<DependencyArtifactSelector>
Returns the list of requested artifacts for the dependency
hasSelectors
Link copied to clipboard
abstract fun hasSelectors(): Boolean
Returns true if the dependency has requested a special artifact (either classifier, type or extension)
selectArtifact
Link copied to clipboard
abstract fun selectArtifact(selector: DependencyArtifactSelector)
abstract fun selectArtifact(type: String, @Nullable extension: String, @Nullable classifier: String)
Adds an artifact to substitute.
withoutArtifactSelectors
Link copied to clipboard
abstract fun withoutArtifactSelectors()
Removes all artifact selectors, if any.