|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.tasks.diagnostics.DependencyInsightReportTask
@Incubating class DependencyInsightReportTask extends DefaultTask
Generates a report that attempts to answer questions like:
While the regular dependencies report (DependencyReportTask) shows the path from the top level dependencies down through the transitive dependencies, the dependency insight report shows the path from a particular dependency to the dependencies that pulled it in. That is, it is an inverted view of the regular dependencies report.
The task requires setting the dependency spec and the configuration. For more information on how to configure those please refer to docs for DependencyInsightReportTask#setDependencySpec(Object)#setDependencySpec(Object) and DependencyInsightReportTask#setConfiguration(String)#setConfiguration(String).
The task can also be configured from the command line. For more information please refer to DependencyInsightReportTask#setDependencySpec(Object)#setDependencySpec(Object) and DependencyInsightReportTask#setConfiguration(String)#setConfiguration(String)
Property Summary | |
---|---|
Configuration |
configuration
Configuration to look the dependency in |
Spec |
dependencySpec
Selects the dependency (or dependencies if multiple matches found) to show the report for. |
Constructor Summary | |
DependencyInsightReportTask(StyledTextOutputFactory outputFactory, VersionMatcher versionMatcher)
|
Method Summary | |
---|---|
void
|
report()
|
void
|
setConfiguration(Configuration configuration)
Sets the configuration to look the dependency in. |
void
|
setConfiguration(String configurationName)
Sets the configuration (via name) to look the dependency in. |
void
|
setDependencySpec(Spec dependencySpec)
The dependency spec selects the dependency (or dependencies if multiple matches found) to show the report for. |
void
|
setDependencySpec(Object dependencyInsightNotation)
Configures the dependency to show the report for. |
Property Detail |
---|
Configuration configuration
Spec dependencySpec
Constructor Detail |
---|
@Inject DependencyInsightReportTask(StyledTextOutputFactory outputFactory, VersionMatcher versionMatcher)
Method Detail |
---|
@TaskAction void report()
void setConfiguration(Configuration configuration)
@Option(option = "configuration", description = "Looks for the dependency in given configuration.") void setConfiguration(String configurationName)
This method is exposed to the command line interface. Example usage:
gradle dependencyInsight --configuration runtime --dependency slf4j
void setDependencySpec(Spec dependencySpec)
@Option(option = "dependency", description = "Shows the details of given dependency.") void setDependencySpec(Object dependencyInsightNotation)
This method is exposed to the command line interface. Example usage:
gradle dependencyInsight --dependency slf4j
Gradle API 1.12