use of org.gradle.api.internal.artifacts.configurations.ResolvableDependenciesInternal 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