Package org.gradle.jvm.toolchain
Interface JavaToolchainService
-
public interface JavaToolchainServiceAllows to query for toolchain managed tools, likeJavaCompiler,JavaLauncherandJavadocTool.An instance of this service is available for injection into tasks, plugins and other types.
- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Provider<JavaCompiler>compilerFor(Action<? super JavaToolchainSpec> config)Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.Provider<JavaCompiler>compilerFor(JavaToolchainSpec spec)Obtain aJavaCompilermatching theJavaToolchainSpec.Provider<JavadocTool>javadocToolFor(Action<? super JavaToolchainSpec> config)Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.Provider<JavadocTool>javadocToolFor(JavaToolchainSpec spec)Obtain aJavadocToolmatching theJavaToolchainSpec.Provider<JavaLauncher>launcherFor(Action<? super JavaToolchainSpec> config)Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.Provider<JavaLauncher>launcherFor(JavaToolchainSpec spec)Obtain aJavaLaunchermatching theJavaToolchainSpec.
-
-
-
Method Detail
-
compilerFor
Provider<JavaCompiler> compilerFor(Action<? super JavaToolchainSpec> config)
Obtain aJavaCompilermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
config- The configuration of theJavaToolchainSpec- Returns:
- A
Provider<JavaCompiler>
-
compilerFor
Provider<JavaCompiler> compilerFor(JavaToolchainSpec spec)
Obtain aJavaCompilermatching theJavaToolchainSpec.- Parameters:
spec- TheJavaToolchainSpec- Returns:
- A
Provider<JavaCompiler>
-
launcherFor
Provider<JavaLauncher> launcherFor(Action<? super JavaToolchainSpec> config)
Obtain aJavaLaunchermatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
config- The configuration of theJavaToolchainSpec- Returns:
- A
Provider<JavaLauncher>
-
launcherFor
Provider<JavaLauncher> launcherFor(JavaToolchainSpec spec)
Obtain aJavaLaunchermatching theJavaToolchainSpec.- Parameters:
spec- TheJavaToolchainSpec- Returns:
- A
Provider<JavaLauncher>
-
javadocToolFor
Provider<JavadocTool> javadocToolFor(Action<? super JavaToolchainSpec> config)
Obtain aJavadocToolmatching theJavaToolchainSpec, as configured by the provided action.- Parameters:
config- The configuration of theJavaToolchainSpec- Returns:
- A
Provider<JavadocTool>
-
javadocToolFor
Provider<JavadocTool> javadocToolFor(JavaToolchainSpec spec)
Obtain aJavadocToolmatching theJavaToolchainSpec.- Parameters:
spec- TheJavaToolchainSpec- Returns:
- A
Provider<JavadocTool>
-
-