mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
Add a special rule for pages-plugin's url
This commit is contained in:
@@ -152,7 +152,11 @@ executableKey := {
|
||||
|
||||
val json = IO read(Keys.baseDirectory.value / "plugins.json")
|
||||
PluginsJson.parse(json).foreach { case (plugin, version) =>
|
||||
val url = s"https://github.com/gitbucket/${plugin}/releases/download/${version}/${plugin}_${scalaBinaryVersion.value}-${version}.jar"
|
||||
val url = if(plugin == "gitbucket-pages-plugin"){
|
||||
s"https://github.com/gitbucket/${plugin}/releases/download/v${version}/${plugin}_${scalaBinaryVersion.value}-${version}.jar"
|
||||
} else {
|
||||
s"https://github.com/gitbucket/${plugin}/releases/download/${version}/${plugin}_${scalaBinaryVersion.value}-${version}.jar"
|
||||
}
|
||||
log info s"Download: ${url}"
|
||||
IO download(new java.net.URL(url), pluginsDir / s"${plugin}_${scalaBinaryVersion.value}-${version}.jar")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user