Package org.gradle.api.tasks.diagnostics
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
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.TaskTask.Namer
- 
Field SummaryFields inherited from interface org.gradle.api.TaskTASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract org.gradle.api.tasks.diagnostics.internal.configurations.spec.AbstractConfigurationReportSpecprotected abstract org.gradle.api.internal.file.FileResolverprotected abstract ObjectFactoryfinal ConfigurationReportsThe reports to be generated by this task.protected abstract org.gradle.internal.logging.text.StyledTextOutputFactoryfinal voidreport()Configures the reports to be generated by this task.reports(Action<? super ConfigurationReports> configureAction) Configures the reports to be generated by this task.Methods inherited from class org.gradle.api.DefaultTaskcompareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTaskacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.TaskdoNotTrackState, getConvention, notCompatibleWithConfigurationCache
- 
Constructor Details- 
AbstractConfigurationReportTaskpublic AbstractConfigurationReportTask()
 
- 
- 
Method Details- 
getObjectFactory
- 
getTextOutputFactory@Inject protected abstract org.gradle.internal.logging.text.StyledTextOutputFactory getTextOutputFactory()
- 
getFileResolver@Inject protected abstract org.gradle.api.internal.file.FileResolver getFileResolver()
- 
buildReportSpecprotected abstract org.gradle.api.tasks.diagnostics.internal.configurations.spec.AbstractConfigurationReportSpec buildReportSpec()
- 
getReportsThe reports to be generated by this task.- Specified by:
- getReportsin interface- Reporting<ConfigurationReports>
- Returns:
- The report container
 
- 
reportspublic ConfigurationReports reports(@DelegatesTo(value=ConfigurationReports.class,strategy=1) Closure closure) Configures the reports to be generated by this task. The contained reports can be configured by task name and closures.- Specified by:
- reportsin interface- Reporting<ConfigurationReports>
- Parameters:
- closure- The configuration
- Returns:
- The reports container
 
- 
reportsConfigures the reports to be generated by this task. The contained reports can be configured by task name and closures.- Specified by:
- reportsin interface- Reporting<ConfigurationReports>
- Parameters:
- configureAction- The configuration
- Returns:
- The reports container
 
- 
reportpublic final void report()
 
-