Class AbstractConfigurationReportTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.tasks.diagnostics.AbstractConfigurationReportTask
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Reporting<ConfigurationReports>, Task, Configurable<Task>
Direct Known Subclasses:
OutgoingVariantsReportTask, ResolvableConfigurationsReportTask

@Incubating @DisableCachingByDefault(because="Produces only non-cacheable console output") public abstract class AbstractConfigurationReportTask extends DefaultTask implements Reporting<ConfigurationReports>
Base class for reporting tasks which display information about attributes and related data associated to a variant/configuration. This class implements Reporting to make configuring additional file output formats simple.
Since:
7.5
  • Constructor Details

    • AbstractConfigurationReportTask

      public AbstractConfigurationReportTask()
  • Method Details

    • getObjectFactory

      @Inject protected abstract ObjectFactory getObjectFactory()
    • getTextOutputFactory

      @Inject protected abstract org.gradle.internal.logging.text.StyledTextOutputFactory getTextOutputFactory()
    • getFileResolver

      @Inject protected abstract org.gradle.api.internal.file.FileResolver getFileResolver()
    • buildReportSpec

      protected abstract org.gradle.api.tasks.diagnostics.internal.configurations.spec.AbstractConfigurationReportSpec buildReportSpec()
    • getReports

      public final ConfigurationReports getReports()
      The reports to be generated by this task.
      Specified by:
      getReports in interface Reporting<ConfigurationReports>
      Returns:
      The report container
    • reports

      Configures the reports to be generated by this task. The contained reports can be configured by task name and closures.
      Specified by:
      reports in interface Reporting<ConfigurationReports>
      Parameters:
      closure - The configuration
      Returns:
      The reports container
    • reports

      public ConfigurationReports reports(Action<? super ConfigurationReports> configureAction)
      Configures the reports to be generated by this task. The contained reports can be configured by task name and closures.
      Specified by:
      reports in interface Reporting<ConfigurationReports>
      Parameters:
      configureAction - The configuration
      Returns:
      The reports container
    • report

      public final void report()