Package org.gradle.jvm.toolchain
Interface JavaToolchainService
@ServiceScope(org.gradle.internal.service.scopes.Scope.Project.class)
public interface 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.
- Since:
 - 6.7
 
- 
Method Summary
Modifier and TypeMethodDescriptioncompilerFor(Action<? super JavaToolchainSpec> config) Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.compilerFor(JavaToolchainSpec spec) Obtain aJavaCompilermatching theJavaToolchainSpec.javadocToolFor(Action<? super JavaToolchainSpec> config) Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.Obtain aJavadocToolmatching theJavaToolchainSpec.launcherFor(Action<? super JavaToolchainSpec> config) Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.launcherFor(JavaToolchainSpec spec) Obtain aJavaLaunchermatching theJavaToolchainSpec. 
- 
Method Details
- 
compilerFor
Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
 config- The configuration of theJavaToolchainSpec- Returns:
 - A 
Provider<JavaCompiler> 
 - 
compilerFor
Obtain aJavaCompilermatching theJavaToolchainSpec.- Parameters:
 spec- TheJavaToolchainSpec- Returns:
 - A 
Provider<JavaCompiler> 
 - 
launcherFor
Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
 config- The configuration of theJavaToolchainSpec- Returns:
 - A 
Provider<JavaLauncher> 
 - 
launcherFor
Obtain aJavaLaunchermatching theJavaToolchainSpec.- Parameters:
 spec- TheJavaToolchainSpec- Returns:
 - A 
Provider<JavaLauncher> 
 - 
javadocToolFor
Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
 config- The configuration of theJavaToolchainSpec- Returns:
 - A 
Provider<JavadocTool> 
 - 
javadocToolFor
Obtain aJavadocToolmatching theJavaToolchainSpec.- Parameters:
 spec- TheJavaToolchainSpec- Returns:
 - A 
Provider<JavadocTool> 
 
 -