api / org.gradle.api.artifacts / ResolvedConfiguration / getFirstLevelModuleDependencies

getFirstLevelModuleDependencies

abstract fun getFirstLevelModuleDependencies(): MutableSet<ResolvedDependency>

Returns the ResolvedDependency instances for each direct dependency of the configuration. Via those you have access to all ResolvedDependency instances, including the transitive dependencies of the configuration.

Exceptions

ResolveException - when the resolve was not successful.

Return
A ResolvedDependency instance for each direct dependency.

abstract fun getFirstLevelModuleDependencies(dependencySpec: Spec<in Dependency>): MutableSet<ResolvedDependency>

Returns the ResolvedDependency instances for each direct dependency of the configuration that matches the given spec. Via those you have access to all ResolvedDependency instances, including the transitive dependencies of the configuration.

Parameters

dependencySpec - A filter for the dependencies to be resolved.

Exceptions

ResolveException - when the resolve was not successful.

Return
A ResolvedDependency instance for each direct dependency.