From c5a79ea673561c7f8de1f36ff3c9ab3a7ea20ef2 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 20 Jul 2016 18:17:06 -0700 Subject: [PATCH] Return URI's for local Maven repo paths. Partial fix for https://github.com/cbeust/kobalt/issues/289 --- .../src/main/kotlin/com/beust/kobalt/BuildScript.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/BuildScript.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/BuildScript.kt index 93511dff..c4e41891 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/BuildScript.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/BuildScript.kt @@ -77,10 +77,10 @@ fun glob(g: String) : IFileSpec.GlobSpec = IFileSpec.GlobSpec(g) */ @Directive fun localMaven() : String { - var result = file(Kobalt.INJECTOR.getInstance(KobaltSettings::class.java).localMavenRepo.path) + var result = Kobalt.INJECTOR.getInstance(KobaltSettings::class.java).localMavenRepo val pluginInfo = Kobalt.INJECTOR.getInstance(PluginInfo::class.java) pluginInfo.localMavenRepoPathInterceptors.forEach { - result = it.repoPath(result) + result = File(it.repoPath(result.absolutePath)) } - return result + return result.toURI().toString() }