# files

abstract fun files(dependencySpecClosure: Closure): Set<File>(source)

### Deprecated

Takes a closure which gets coerced into a Spec. Behaves otherwise in the same way as files.

#### Return

The files of a subset of dependencies of this configuration.

#### Deprecated

Use `getIncoming().artifactView(Action)` with a `componentFilter` instead.

#### Parameters

dependencySpecClosure

The closure describing a filter applied to the all the dependencies of this configuration (including dependencies from extended configurations).

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

### Deprecated

Resolves this configuration. This locates and downloads the files which make up this configuration. But only the resulting set of files belonging to the subset of dependencies specified by the dependencySpec is returned.

#### Return

The files of a subset of dependencies of this configuration.

#### Deprecated

Use `getIncoming().artifactView(Action)` with a `componentFilter` instead.

#### Parameters

dependencySpec

The spec describing a filter applied to the all the dependencies of this configuration (including dependencies from extended configurations).

abstract fun files(dependencies: Array<Dependency>): Set<File>(source)

### Deprecated

Resolves this configuration. This locates and downloads the files which make up this configuration. But only the resulting set of files belonging to the specified dependencies is returned.

#### Return

The files of a subset of dependencies of this configuration.

#### Deprecated

Use `getIncoming().artifactView(Action)` with a `componentFilter` instead.

#### Parameters

dependencies

The dependencies to be resolved