Package org.gradle.api.tasks.diagnostics
Class OutgoingVariantsReportTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.tasks.diagnostics.AbstractConfigurationReportTask
org.gradle.api.tasks.diagnostics.OutgoingVariantsReportTask
- All Implemented Interfaces:
- Comparable<Task>,- org.gradle.api.internal.DynamicObjectAware,- org.gradle.api.internal.TaskInternal,- Named,- ExtensionAware,- Reporting<ConfigurationReports>,- Task,- Configurable<Task>
@DisableCachingByDefault(because="Produces only non-cacheable console output by examining configurations at execution time")
public abstract class OutgoingVariantsReportTask
extends AbstractConfigurationReportTask
A task which reports the outgoing variants of a project on the command line.
 This is useful for listing what a project produces in terms of variants and
 what artifacts are attached to each variant.
 Variants, in this context, must be understood as "things produced by a project
 which can safely be consumed by another project".
- Since:
- 6.0
- 
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 org.gradle.api.tasks.diagnostics.internal.configurations.spec.AbstractConfigurationReportSpecShows all variants, including legacy and deprecated configurations.Limits the report to a single variant.Methods inherited from class org.gradle.api.tasks.diagnostics.AbstractConfigurationReportTaskgetFileResolver, getObjectFactory, getReports, getTextOutputFactory, report, reports, reportsMethods 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- 
OutgoingVariantsReportTaskpublic OutgoingVariantsReportTask()
 
- 
- 
Method Details- 
getVariantNameLimits the report to a single variant.- Returns:
- property holding name of the variant to report
 
- 
getShowAllShows all variants, including legacy and deprecated configurations.- Returns:
- property holding the flag to show all variants
 
- 
buildReportSpecprotected org.gradle.api.tasks.diagnostics.internal.configurations.spec.AbstractConfigurationReportSpec buildReportSpec()- Specified by:
- buildReportSpecin class- AbstractConfigurationReportTask
 
 
-