# getArtifacts

abstract fun getArtifacts(): Set<ResolvedArtifact>

Gets successfully resolved artifacts. Ignores dependencies or files that cannot be resolved.

Prefer getArtifacts.

#### Return

successfully resolved artifacts

#### Since

3.3

abstract fun getArtifacts(dependencySpec: Spec<in Dependency>): Set<ResolvedArtifact>

### Deprecated

Gets successfully resolved artifacts. Ignores dependencies or files that cannot be resolved.

#### Return

successfully resolved artifacts for dependencies that match given dependency spec

#### Deprecated

Use a lenient ArtifactView with a `componentFilter` instead.

#### Parameters

dependencySpec

dependency spec