Skip to content

Instantly share code, notes, and snippets.

@abesto
abesto / dependency-report.gradle
Created July 24, 2015 14:06
Gradle: multi-project dependency graph
task dependencyReport {
doLast {
def file = new File("project-dependencies.dot")
file.delete()
file << "digraph {\n"
file << "splines=ortho\n"
rootProject.childProjects.each { item ->
def from = item.value
from.configurations.compile.dependencies
.matching { it in ProjectDependency }