JavaToolchainService

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.

Functions

Link copied to clipboard
abstract fun compilerFor(config: Action<out Any>): Provider<JavaCompiler>
Obtain a JavaCompiler matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavaCompiler matching the JavaToolchainSpec.
Link copied to clipboard
abstract fun javadocToolFor(config: Action<out Any>): Provider<JavadocTool>
Obtain a JavadocTool matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavadocTool matching the JavaToolchainSpec.
Link copied to clipboard
abstract fun launcherFor(config: Action<out Any>): Provider<JavaLauncher>
Obtain a JavaLauncher matching the JavaToolchainSpec, as configured by the provided action.
Obtain a JavaLauncher matching the JavaToolchainSpec.