Add cordaCompile to graphs (#1282)

This commit is contained in:
Andrzej Cichocki 2017-08-29 11:45:19 +01:00 committed by GitHub
parent a027e51ca3
commit 98e2ea9352

View File

@ -10,7 +10,13 @@ class GraphProject {
this.project = project
}
def getCompileDeps() {
project.configurations.compile.dependencies.matching { it in ProjectDependency }.collect { projects[it.dependencyProject] }
['compile', 'cordaCompile'].collect {
try {
project.configurations[it].dependencies.matching { it in ProjectDependency }.collect { projects[it.dependencyProject] }
} catch (org.gradle.api.artifacts.UnknownConfigurationException e) {
[] // The project doesn't have a cordaCompile configuration, so there aren't any cordaCompile dependencies.
}
}.flatten()
}
}