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.

resolve

Returns a JavaToolchainDownload if a Java toolchain matching the provided specification can be provided.

Return

empty Optional if and only if the provided specification can't be matched

Since

7.6

Parameters

request

information about the toolchain needed and the environment it's needed in