0

How can I get list of a subproject dependecies as list of Project object?
subproject.dependencies gives list of DependencyHandler objects. And I can't find how extract Project from DependencyHandler.

Alexey
  • 2,980
  • 4
  • 30
  • 53

1 Answers1

0

After a short have found solution myself :)

subprojects {
    configurations.all {
        allDependencies.each {
            if (it instanceof ProjectDependency) {
                println it.dependencyProject
            }
        }
    }
}
Alexey
  • 2,980
  • 4
  • 30
  • 53