Search in sources :

Example 1 with NodeRenderer

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);
}
Also used : NodeRenderer(org.gradle.api.tasks.diagnostics.internal.graph.NodeRenderer) SimpleNodeRenderer(org.gradle.api.tasks.diagnostics.internal.graph.SimpleNodeRenderer) DependencyGraphRenderer(org.gradle.api.tasks.diagnostics.internal.graph.DependencyGraphRenderer) GraphRenderer(org.gradle.internal.graph.GraphRenderer) StyledTextOutput(org.gradle.internal.logging.text.StyledTextOutput) SimpleNodeRenderer(org.gradle.api.tasks.diagnostics.internal.graph.SimpleNodeRenderer) DependencyGraphRenderer(org.gradle.api.tasks.diagnostics.internal.graph.DependencyGraphRenderer)

Aggregations

DependencyGraphRenderer (org.gradle.api.tasks.diagnostics.internal.graph.DependencyGraphRenderer)1 NodeRenderer (org.gradle.api.tasks.diagnostics.internal.graph.NodeRenderer)1 SimpleNodeRenderer (org.gradle.api.tasks.diagnostics.internal.graph.SimpleNodeRenderer)1 GraphRenderer (org.gradle.internal.graph.GraphRenderer)1 StyledTextOutput (org.gradle.internal.logging.text.StyledTextOutput)1