@Incubating public class HtmlDependencyReportTask extends org.gradle.api.internal.ConventionTask implements Reporting<DependencyReportContainer>
This task generates a report for the task's containing project by default. But it can also generate
a report for multiple projects, by setting the value of the
projects
property. Here's how to generate an HTML
dependency report for all the projects of a multi-project build, for example:
htmlDependencyReport { projects = project.allprojects }
The report is generated in the build/reports/project/dependencies
directory by default.
This can also be changed by setting the outputDirectory
property.
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
HtmlDependencyReportTask() |
Modifier and Type | Method and Description |
---|---|
void |
generate() |
protected org.gradle.internal.reflect.Instantiator |
getInstantiator() |
Set<Project> |
getProjects()
Returns the set of projects to generate a report for.
|
DependencyReportContainer |
getReports()
A
ReportContainer instance. |
protected org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionMatcher |
getVersionMatcher() |
DependencyReportContainer |
reports(Closure closure)
Allow configuration of the report container by closure.
|
void |
setProjects(Set<Project> projects)
Specifies the set of projects to generate this report for.
|
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public DependencyReportContainer getReports()
Reporting
ReportContainer
instance.
Implementors specify a specific implementation of ReportContainer
that describes the types of reports that
are available.
getReports
in interface Reporting<DependencyReportContainer>
public DependencyReportContainer reports(Closure closure)
Reporting
reports { html { enabled false } xml.destination "build/reports/myReport.xml" }
reports
in interface Reporting<DependencyReportContainer>
closure
- The configuration@Inject protected org.gradle.internal.reflect.Instantiator getInstantiator()
@Inject protected org.gradle.api.internal.artifacts.ivyservice.ivyresolve.strategy.VersionMatcher getVersionMatcher()
public void generate()
public Set<Project> getProjects()