From 0aa73745bd676982a61594eb0f41784177b2fb09 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 19 Feb 2016 22:02:44 +0400 Subject: [PATCH] Go to network. --- src/main/kotlin/com/beust/kobalt/Main.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/Main.kt b/src/main/kotlin/com/beust/kobalt/Main.kt index 48009d4c..ae6d122c 100644 --- a/src/main/kotlin/com/beust/kobalt/Main.kt +++ b/src/main/kotlin/com/beust/kobalt/Main.kt @@ -73,7 +73,8 @@ private class Main @Inject constructor( var pluginClassLoader = javaClass.classLoader val dependencies = arrayListOf() args.pluginIds?.let { - dependencies.addAll(it.split(",").map { depFactory.create(it) }) + // We want this call to go to the network if no version was specified, so set localFirst to false + dependencies.addAll(it.split(",").map { depFactory.create(it, localFirst = false) }) } args.pluginJarFiles?.let { dependencies.addAll(it.split(",").map { FileDependency(it) })