是否有Gradle“dependencies” buildScript依赖关系的任务? [英] Is there Gradle "dependencies " task for buildScript dependencies?
问题描述
可以运行 gradlew dependencies
来了解模块任务的依赖关系。它有一种方法可以找到 buildscript依赖项的传递依赖项?
示例:
classpath'com。 android.tools.build:gradle:1.0.0'
直接取决于:
com.android .tools.build builder
com.android.tools.lint lint
net.sf.proguard proguard-gradle
tools.base project-test-lib
可以在 MVNRepository 。但是这些工件有它们自己的依赖关系。有没有办法找到那些没有手动遍历整个依赖树?
作为一个澄清,我谈论的类路径定义为:
buildscript {
repositories {}
dependencies {....}
}
code>
您可以使用以下命令:
gradle dependencyInsight - 依赖gradle
Udacity的精彩教程, Gradle for Android ,但您可以观看此视频以获得更多解释。
One can run gradlew dependencies
to learn about dependencies of module tasks. It there a way to find transitive dependencies of buildscript dependencies?
Example:
classpath 'com.android.tools.build:gradle:1.0.0'
depends directly on:
com.android.tools.build builder
com.android.tools.lint lint
net.sf.proguard proguard-gradle
tools.base project-test-lib
As can be seen on MVNRepository. But this artifacts have their own dependencies. Is there and way to find those out without manually traversing whole dependency tree?
As a clarification, the classpath I'm talking about is defined by:
buildscript {
repositories {}
dependencies { .... }
}
You can use this command:
gradle dependencyInsight --dependency gradle
There is awesome tutorial by Udacity, Gradle for Android, but you can watch this video for more explanation.
这篇关于是否有Gradle“dependencies” buildScript依赖关系的任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!