Search in sources :

Example 1 with HtmlDependencyReporter

use of org.gradle.api.reporting.dependencies.internal.HtmlDependencyReporter in project gradle by gradle.

the class HtmlDependencyReportTask method generate.

@TaskAction
public void generate() {
    if (!reports.getHtml().isEnabled()) {
        setDidWork(false);
        return;
    }
    HtmlDependencyReporter reporter = new HtmlDependencyReporter(getVersionSelectorScheme(), getVersionComparator());
    reporter.render(getProjects(), reports.getHtml().getDestination());
    getProject().getLogger().lifecycle("See the report at: {}", new ConsoleRenderer().asClickableFileUrl(reports.getHtml().getEntryPoint()));
}
Also used : HtmlDependencyReporter(org.gradle.api.reporting.dependencies.internal.HtmlDependencyReporter) ConsoleRenderer(org.gradle.internal.logging.ConsoleRenderer) TaskAction(org.gradle.api.tasks.TaskAction)

Aggregations

HtmlDependencyReporter (org.gradle.api.reporting.dependencies.internal.HtmlDependencyReporter)1 TaskAction (org.gradle.api.tasks.TaskAction)1 ConsoleRenderer (org.gradle.internal.logging.ConsoleRenderer)1