Linux command
gradle-dependencies 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List dependencies
gradle dependencies
Show specific configuration
gradle dependencies --configuration [compileClasspath]
Module dependencies
gradle :module:dependencies
Output to file
gradle dependencies > deps.txt
说明
gradle dependencies displays the dependency tree for a project. It shows all direct and transitive dependencies with their versions and conflict resolution. The output shows dependency hierarchies for different configurations (compile, runtime, test), helping to understand dependency chains and version conflicts.
参数
- --configuration _NAME_
- Specific configuration to show.
- --help
- Display help information.
FAQ
What is the gradle-dependencies command used for?
gradle dependencies displays the dependency tree for a project. It shows all direct and transitive dependencies with their versions and conflict resolution. The output shows dependency hierarchies for different configurations (compile, runtime, test), helping to understand dependency chains and version conflicts.
How do I run a basic gradle-dependencies example?
Run `gradle dependencies` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --configuration _NAME_ do in gradle-dependencies?
Specific configuration to show.