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.

JavaToolchainService

@ServiceScope(value = Project::class)
interface JavaToolchainService(source)

Allows to query for toolchain managed tools, like JavaCompiler, JavaLauncher and JavadocTool.

An instance of this service is available for injection into tasks, plugins and other types.

Since

6.7

Functions

Link copied to clipboard
Obtain a JavaCompiler matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavaCompiler matching the JavaToolchainSpec.
Link copied to clipboard
Obtain a JavadocTool matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavadocTool matching the JavaToolchainSpec.
Link copied to clipboard
Obtain a JavaLauncher matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavaLauncher matching the JavaToolchainSpec.