use of org.gradle.api.tasks.diagnostics.internal.graph.NodeRenderer in project gradle by gradle.
the class AsciiDependencyReportRenderer method startConfiguration.
@Override
public void startConfiguration(final Configuration configuration) {
if (hasConfigs) {
getTextOutput().println();
}
hasConfigs = true;
GraphRenderer renderer = new GraphRenderer(getTextOutput());
renderer.visit(new Action<StyledTextOutput>() {
public void execute(StyledTextOutput styledTextOutput) {
getTextOutput().withStyle(Identifier).text(configuration.getName());
getTextOutput().withStyle(Description).text(getDescription(configuration));
if (!configuration.isCanBeResolved()) {
getTextOutput().withStyle(Info).text(" (n)");
}
}
}, true);
NodeRenderer nodeRenderer = new SimpleNodeRenderer();
dependencyGraphRenderer = new DependencyGraphRenderer(renderer, nodeRenderer, legendRenderer);
}
Aggregations