Project.dependsOnProjects() returns whatever you have set with Project.dependsOn(). This is unrelated to having a compile or runtime dependency on another project. To find the latter you can do:
def projectDependencies = configurations.runtime.getAllDependencies(ProjectDependency) // will also find 'compile' dependencies def dependedUponProjects = projectDependencies*.dependencyProject Or, for tests: configurations.testRuntime.getAllDependencies(ProjectDependency) // will also find 'compile', 'runtime', and 'testCompile' dependencies To find just the project dependencies for the configuration at hand but not its super-configurations, use 'getDependencies' instead of 'getAllDependencies'. -- Peter Niederwieser Developer, Gradle http://www.gradle.org Trainer & Consultant, Gradleware http://www.gradleware.com Creator, Spock Framework http://spockframework.org -- View this message in context: http://gradle.1045684.n5.nabble.com/dependsOnProjects-always-empty-tp4362896p4362955.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
