use of org.gradle.api.tasks.diagnostics.internal.graph.nodes.UnresolvableConfigurationResult in project gradle by gradle.
the class JsonProjectDependencyRenderer method collectModules.
private Set<ModuleIdentifier> collectModules(Configuration configuration) {
RenderableDependency root;
if (canBeResolved(configuration)) {
ResolutionResult result = configuration.getIncoming().getResolutionResult();
root = new RenderableModuleResult(result.getRoot());
} else {
root = new UnresolvableConfigurationResult(configuration);
}
Set<ModuleIdentifier> modules = Sets.newHashSet();
Set<ComponentIdentifier> visited = Sets.newHashSet();
populateModulesWithChildDependencies(root, visited, modules);
return modules;
}
use of org.gradle.api.tasks.diagnostics.internal.graph.nodes.UnresolvableConfigurationResult in project gradle by gradle.
the class JsonProjectDependencyRenderer method createDependencies.
private List<Map<String, Object>> createDependencies(Configuration configuration) {
if (canBeResolved(configuration)) {
ResolutionResult result = configuration.getIncoming().getResolutionResult();
RenderableDependency root = new RenderableModuleResult(result.getRoot());
return createDependencyChildren(root, new HashSet<>());
} else {
return createDependencyChildren(new UnresolvableConfigurationResult(configuration), new HashSet<>());
}
}
use of org.gradle.api.tasks.diagnostics.internal.graph.nodes.UnresolvableConfigurationResult in project gradle by gradle.
the class AsciiDependencyReportRenderer method render.
@Override
public void render(Configuration configuration) {
if (canBeResolved(configuration)) {
ResolutionResult result = configuration.getIncoming().getResolutionResult();
RenderableDependency root = new RenderableModuleResult(result.getRoot());
renderNow(root);
} else {
renderNow(new UnresolvableConfigurationResult(configuration));
}
}
Aggregations