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.

compilerFor

Obtain a JavaCompiler matching the JavaToolchainSpec, as configured by the provided action.

Return

A Provider<JavaCompiler>

Since

6.7

Parameters

config

The configuration of the JavaToolchainSpec


Obtain a JavaCompiler matching the JavaToolchainSpec.

Return

A Provider<JavaCompiler>

Since

6.7

Parameters

spec

The JavaToolchainSpec