From 94ca597cf8aed208210b433de2e6d387f3ad4de6 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sat, 21 Oct 2017 17:04:35 +0900 Subject: [PATCH] (refs #1748) Exclude gitbucket.war from published artifacts --- build.sbt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sbt b/build.sbt index df8dcf65c..0131e4dbf 100644 --- a/build.sbt +++ b/build.sbt @@ -99,6 +99,11 @@ javaOptions in Jetty ++= Option(System.getenv().get("JREBEL")).toSeq.flatMap { p Seq("-noverify", "-XX:+UseConcMarkSweepGC", "-XX:+CMSClassUnloadingEnabled", s"-javaagent:${path}") } +// Exclude a war file from published artifacts +packagedArtifacts := { + packagedArtifacts.value.filterNot { case (artifact, file) => file.getName.endsWith(".war") } +} + // Create executable war file val ExecutableConfig = config("executable").hide Keys.ivyConfigurations += ExecutableConfig