For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getFirstLevelModuleDependencies

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.

Prefer org.gradle.api.artifacts.result.ResolutionResult for traversing the resolved graph or getArtifacts for accessing the resolved artifacts.

Return

A ResolvedDependency instance for each direct dependency.

Since

0.8

Throws

when the resolve was not successful.