fileCollection

abstract fun fileCollection(dependencySpec: Spec<in Dependency>): FileCollection(source)

Deprecated

Resolves this configuration lazily. The resolve happens when the elements of the returned FileCollection get accessed the first time. This locates and downloads the files which make up this configuration. Only the resulting set of files belonging to the subset of dependencies specified by the dependencySpec is contained in the FileCollection.

Return

The FileCollection with 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 fileCollection(dependencySpecClosure: Closure): FileCollection(source)

Deprecated

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

Return

The FileCollection with 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 fileCollection(dependencies: Array<Dependency>): FileCollection(source)

Deprecated

Resolves this configuration lazily. The resolve happens when the elements of the returned FileCollection get accessed the first time. This locates and downloads the files which make up this configuration. Only the resulting set of files belonging to specified dependencies is contained in the FileCollection.

Return

The FileCollection with a subset of dependencies of this configuration.

Deprecated

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

Parameters

dependencies

The dependencies for which the FileCollection should contain the files.