From 5a7a6d8277c0c4a6738652c653dd9650944a626f Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 28 Jul 2016 23:30:44 -0800 Subject: [PATCH] Throw if a jar file can't be found. --- .../src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt index 47cc6886..94d9e109 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/maven/aether/Aether.kt @@ -231,10 +231,10 @@ class AetherDependency(val artifact: Artifact) : IClasspathDependency, Comparabl if (newFile != null) { CompletedFuture(newFile) } else { - CompletedFuture(File("DOESNOTEXIST $id")) // will be filtered out + throw KobaltException("Could not resolve $id") } } else { - CompletedFuture(File("DOESNOTEXIST $id")) + throw KobaltException("Could not resolve $id") } } }