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.

getToolchain

Gets the project wide toolchain requirements that will be used for tasks requiring a tool from the toolchain (e.g. org.gradle.api.tasks.compile.JavaCompile).

Configuring a toolchain cannot be used together with sourceCompatibility or targetCompatibility on this extension. Both values will be sourced from the toolchain.

Since

6.7