我可以将哪些参数传递给 `gradle dependencies`
What parameters can I pass to `gradle dependencies`
当我运行gradle dependencies
时,我可以显示一个gradle项目的依赖树。有什么参数可以传吗?
我从某个地方只知道一个 --configuration compile
,但找不到任何文档
gradle dependencies
是一个 DependencyReportTask task. Checking Gradle source code for this task it looks like the configuration
is the only option for this task (the only one decorated with the @Option 注释),即:
@Option(option = "configuration", description = "The configuration to generate the report for.")
public void setConfiguration(String configurationName) {
this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName));
}
当我运行gradle dependencies
时,我可以显示一个gradle项目的依赖树。有什么参数可以传吗?
我从某个地方只知道一个 --configuration compile
,但找不到任何文档
gradle dependencies
是一个 DependencyReportTask task. Checking Gradle source code for this task it looks like the configuration
is the only option for this task (the only one decorated with the @Option 注释),即:
@Option(option = "configuration", description = "The configuration to generate the report for.") public void setConfiguration(String configurationName) { this.configurations = Collections.singleton(getProject().getConfigurations().getByName(configurationName)); }