com.github.ksoichiro.console.reporter.ConsoleReporterPlugin.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-console-reporter Show documentation
Show all versions of gradle-console-reporter Show documentation
Gradle plugin to report various kinds of summaries to console.
package com.github.ksoichiro.console.reporter
import org.fusesource.jansi.Ansi
import org.gradle.api.Plugin
import org.gradle.api.Project
class ConsoleReporterPlugin implements Plugin {
@Override
void apply(Project target) {
target.extensions.create(ConsoleReporterExtension.NAME, ConsoleReporterExtension)
target.tasks.create(ReportTestTask.NAME, ReportTestTask)
target.tasks.create(ReportJacocoTask.NAME, ReportJacocoTask)
target.tasks.create(ReportCoberturaTask.NAME, ReportCoberturaTask)
// fgBright is not available in the last release, so add it dynamically
Ansi.metaClass.fgBright { Ansi.Color color ->
delegate.attributeOptions.add(Integer.valueOf(color.fgBright()))
delegate
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy