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 SummaryModifier 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- 
compilerForObtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
- config- The configuration of the- JavaToolchainSpec
- Returns:
- A Provider<JavaCompiler>
 
- 
compilerForObtain aJavaCompilermatching theJavaToolchainSpec.- Parameters:
- spec- The- JavaToolchainSpec
- Returns:
- A Provider<JavaCompiler>
 
- 
launcherForObtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
- config- The configuration of the- JavaToolchainSpec
- Returns:
- A Provider<JavaLauncher>
 
- 
launcherForObtain aJavaLaunchermatching theJavaToolchainSpec.- Parameters:
- spec- The- JavaToolchainSpec
- Returns:
- A Provider<JavaLauncher>
 
- 
javadocToolForObtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
- config- The configuration of the- JavaToolchainSpec
- Returns:
- A Provider<JavadocTool>
 
- 
javadocToolForObtain aJavadocToolmatching theJavaToolchainSpec.- Parameters:
- spec- The- JavaToolchainSpec
- Returns:
- A Provider<JavadocTool>
 
 
-