api / org.gradle.api.artifacts / Configuration / files

files

abstract fun files(dependencySpecClosure: Closure<Any>): MutableSet<File>

Takes a closure which gets coerced into a Spec. Behaves otherwise in the same way as #files(org.gradle.api.specs.Spec).

Parameters

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

Return
The files of a subset of dependencies of this configuration.

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

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.

Parameters

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

Return
The files of a subset of dependencies of this configuration.

abstract fun files(vararg dependencies: Dependency): MutableSet<File>

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.

Parameters

dependencies - The dependencies to be resolved

Return
The files of a subset of dependencies of this configuration.