gradle
8.2

# getFirstLevelModuleDependencies

abstract fun getFirstLevelModuleDependencies(): Set<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.

#### Return

A `ResolvedDependency` instance for each direct dependency.

#### Throws

ResolveException

when the resolve was not successful.

abstract fun getFirstLevelModuleDependencies(dependencySpec: Spec<out Any>): Set<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.

#### Return

A `ResolvedDependency` instance for each direct dependency.

#### Parameters

dependencySpec

A filter for the dependencies to be resolved.

#### Throws

ResolveException

when the resolve was not successful.