From 3c1bc32e5eb17de8749abc96a7b46d2e174881d3 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Tue, 12 Jun 2018 17:06:48 +0900 Subject: [PATCH] Fix format --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 76a051d5e..59d99213b 100644 --- a/build.sbt +++ b/build.sbt @@ -170,13 +170,13 @@ executableKey := { // include plugins val pluginsDir = temp / "WEB-INF" / "classes" / "plugins" IO createDirectory (pluginsDir) - //IO copyFile (Keys.baseDirectory.value / "src" / "main" / "resources" / "bundle-plugins.txt", pluginsDir / "plugins.json") val plugins = IO readLines (Keys.baseDirectory.value / "src" / "main" / "resources" / "bundle-plugins.txt") plugins.foreach { plugin => plugin.trim.split(":") match { case Array(pluginId, pluginVersion) => - val url = s"https://plugins.gitbucket-community.org/releases/gitbucket-${pluginId}-plugin/gitbucket-${pluginId}-plugin-gitbucket_${version.value}-${pluginVersion}.jar" + val url = "https://plugins.gitbucket-community.org/releases/" + + s"gitbucket-${pluginId}-plugin/gitbucket-${pluginId}-plugin-gitbucket_${version.value}-${pluginVersion}.jar" log info s"Download: ${url}" IO transfer (new java.net.URL(url).openStream, pluginsDir / url.substring(url.lastIndexOf("/") + 1)) case _ => ()