# getFiles

abstract fun getFiles(): Set<File>

### Deprecated

Returns the files for the configuration dependencies.

#### Return

The artifact files of the specified dependencies.

#### Since

3.3

#### Deprecated

Use getFiles instead.

#### Throws

ResolveException

when the resolve was not successful.

abstract fun getFiles(dependencySpec: Spec<in Dependency>): Set<File>

### Deprecated

Returns the files for the specified subset of configuration dependencies.

#### Return

The artifact files of the specified dependencies.

#### Deprecated

Use an ArtifactView with a `componentFilter` instead.

#### Parameters

dependencySpec

The filter for the configuration dependencies.

#### Throws

ResolveException

when the resolve was not successful.