# getFirstLevelModuleDependencies

abstract fun getFirstLevelModuleDependencies(): Set<ResolvedDependency>(source)

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.

#### Return

A `ResolvedDependency` instance for each direct dependency.

#### Throws

ResolveException

when the resolve was not successful.

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

### Deprecated

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.

#### Return

A `ResolvedDependency` instance for each direct dependency.

#### Deprecated

Use getFirstLevelModuleDependencies.

#### Parameters

dependencySpec

A filter for the dependencies to be resolved.

#### Throws

ResolveException

when the resolve was not successful.