gradle
8.5

# resolve

abstract fun resolve(): Set<File>(source)

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

#### Return

The files which make up this dependency.

#### See also

resolve(boolean)

abstract fun resolve(transitive: Boolean): Set<File>(source)

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.

#### Return

The files which make up this dependency.

#### Parameters

transitive

Whether to resolve transitively. Has only an effect on a org.gradle.api.artifacts.ProjectDependency