use of org.gradle.api.Incubating in project gradle by gradle.
the class JavaCompile method getToolChain.
/**
* Returns the tool chain that will be used to compile the Java source.
*
* @return The tool chain.
*/
@Nested
@Incubating
public JavaToolChain getToolChain() {
if (getOptions().isFork()) {
ForkOptions forkOptions = getOptions().getForkOptions();
File javaHome = forkOptions.getJavaHome();
if (javaHome != null) {
return new JavaHomeBasedJavaToolChain(javaHome, getJavaCompilerFactory(), getExecActionFactory(), getJvmVersionDetector());
}
}
return new CurrentJvmJavaToolChain(getJavaCompilerFactory(), getExecActionFactory());
}
use of org.gradle.api.Incubating in project gradle by gradle.
the class DependencyInsightReportTask method getRootComponentProperty.
/**
* The root component of the dependency graph to be inspected.
*
* @since 7.5
*/
@Input
@Optional
@Incubating
public Property<ResolvedComponentResult> getRootComponentProperty() {
Configuration configuration = getConfiguration();
if (!rootComponentProperty.isPresent() && configuration != null && getDependencySpec() != null) {
configurationName = configuration.getName();
configurationDescription = configuration.toString();
configurationAttributes = configuration.getAttributes();
ResolvableDependenciesInternal incoming = (ResolvableDependenciesInternal) configuration.getIncoming();
ResolutionResult result = incoming.getResolutionResult(errorHandler);
rootComponentProperty.set(result.getRootComponent());
}
return rootComponentProperty;
}
Aggregations