From 5768fb24db16afd64d25093ab17ddc9ac9d296a5 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 7 Apr 2017 11:41:43 -0700 Subject: [PATCH] Dependencies can be empty. --- .../src/main/kotlin/com/beust/kobalt/api/IDependencyManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/IDependencyManager.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/IDependencyManager.kt index e272e3d5..3a66f980 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/IDependencyManager.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/api/IDependencyManager.kt @@ -61,7 +61,7 @@ interface IDependencyManager { return excluded?.map { it.id }?.contains(dep.id) ?: false } - val accept = dependencies.any { + val accept = dependencies.isEmpty() || dependencies.any { // Is this dependency excluded? val isExcluded = isNodeExcluded(p0, it) || isDepExcluded(p0, project?.excludedDependencies)