@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
コンストラクタと説明 |
---|
HtmlDependencyReportTask() |
修飾子とタイプ | メソッドと説明 |
---|---|
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, getImpliesSubProjects, 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, setImpliesSubProjects, 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
インタフェース内 Reporting<DependencyReportContainer>
public DependencyReportContainer reports(Closure closure)
Reporting
reports { html { enabled false } xml.destination "build/reports/myReport.xml" }
reports
インタフェース内 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()