api / org.gradle.api.artifacts / FileCollectionDependency

FileCollectionDependency

interface FileCollectionDependency : SelfResolvingDependency

A FileCollectionDependency is a Dependency on a collection of local files which are not stored in a repository.

Functions

getFiles

abstract fun getFiles(): FileCollection

Returns the files attached to this dependency.

Inherited Functions

resolve

abstract fun resolve(): MutableSet<File>

Resolves this dependency. A org.gradle.api.artifacts.ProjectDependency is resolved with transitive equals true by this method.

abstract fun resolve(transitive: Boolean): MutableSet<File>

Resolves this dependency by specifying the transitive mode. This mode has only an effect if the self resolved dependency is of type org.gradle.api.artifacts.ProjectDependency. In this case, if transitive is false, only the self resolving dependencies of the project configuration which are no project dependencies are resolved. If transitive is set to true, other project dependencies belonging to the configuration of the resolved project dependency are resolved recursively.