https://github.com/jfrog/gradle-dep-tree
Gradle plugin that reads the Gradle dependencies of a given Gradle project, and generates a dependency tree.
https://github.com/jfrog/gradle-dep-tree
dependency-graph dependency-tree gradle jfrog jfrog-idea-plugin
Last synced: 6 months ago
JSON representation
Gradle plugin that reads the Gradle dependencies of a given Gradle project, and generates a dependency tree.
- Host: GitHub
- URL: https://github.com/jfrog/gradle-dep-tree
- Owner: jfrog
- License: apache-2.0
- Created: 2022-04-11T09:16:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-09-17T10:43:24.000Z (8 months ago)
- Last Synced: 2025-09-17T11:44:14.327Z (8 months ago)
- Topics: dependency-graph, dependency-tree, gradle, jfrog, jfrog-idea-plugin
- Language: Java
- Homepage:
- Size: 125 KB
- Stars: 13
- Watchers: 4
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/jfrog/frogbot#readme)
[](https://github.com/jfrog/gradle-dep-tree/actions/workflows/test.yml)
# 🐘 Gradle Dependency Tree
This Gradle plugin reads the Gradle dependencies of a given Gradle project, and generates a dependency tree. This
package was developed by JFrog, and is used by the [JFrog IntelliJ IDEA Plugin](https://plugins.jetbrains.com/plugin/9834-jfrog)
to generate the dependency tree for projects using Gradle dependencies. You may find this plugin useful for other
purposes and applications as well, by applying it in your build.gradle file.
## 🖥️ Usage
Inject the plugin using the [init.gradle](./init.gradle) initialization script, and run *generateDepTrees* in a
directory containing a build.gradle file. The plugin will generate a dependency tree for each subproject that does not
contain a build.gradle file. To generate a dependency tree for each subproject that contains a Gradle build file, set the `-Dcom.jfrog.includeAllBuildFiles` flag to `true`.
The command:
```bash
gradle clean generateDepTrees -I -q -Dcom.jfrog.depsTreeOutputFile=
```
Output:
```
""
""
...
```
## 🌲 Output Tree Structure
```json
{
"root": "org.jfrog.example.gradle:shared:1.0-SNAPSHOT",
"nodes": {
"junit:junit:4.7": {
"unresolved": false,
"configurations": ["testCompileClasspath", "testImplementation", "testRuntimeClasspath"],
"children": []
},
"org.jfrog.example.gradle:shared:1.0-SNAPSHOT": {
"unresolved": false,
"configurations": ["compileClasspath", "runtimeClasspath", "testCompileClasspath", "testRuntimeClasspath"],
"children": ["junit:junit:4.7"]
}
}
}
```
## 💻 Contributions
We welcome pull requests from the community. To help us improve this project, please read
our [contribution](./CONTRIBUTING.md#-guidelines) guide.