1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Dependencies can be empty.

This commit is contained in:
Cedric Beust 2017-04-07 11:41:43 -07:00
parent 9049ed8048
commit 5768fb24db

View file

@ -61,7 +61,7 @@ interface IDependencyManager {
return excluded?.map { it.id }?.contains(dep.id) ?: false return excluded?.map { it.id }?.contains(dep.id) ?: false
} }
val accept = dependencies.any { val accept = dependencies.isEmpty() || dependencies.any {
// Is this dependency excluded? // Is this dependency excluded?
val isExcluded = isNodeExcluded(p0, it) || isDepExcluded(p0, project?.excludedDependencies) val isExcluded = isNodeExcluded(p0, it) || isDepExcluded(p0, project?.excludedDependencies)