From f36bcef50c0e7325b906d10d03e4446bae0a6fd6 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 22 Oct 2017 01:24:43 +0900 Subject: [PATCH] (refs #1748) Exclude gitbucket.war from published artifacts --- build.sbt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 0131e4dbf..fec11f1ed 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,5 @@ import com.typesafe.sbt.license.{LicenseInfo, DepModuleInfo} +import com.typesafe.sbt.pgp.PgpKeys._ val Organization = "io.github.gitbucket" val Name = "gitbucket" @@ -100,7 +101,7 @@ javaOptions in Jetty ++= Option(System.getenv().get("JREBEL")).toSeq.flatMap { p } // Exclude a war file from published artifacts -packagedArtifacts := { +signedArtifacts := { packagedArtifacts.value.filterNot { case (artifact, file) => file.getName.endsWith(".war") } } @@ -197,7 +198,7 @@ executableKey := { publishTo := { val nexus = "https://oss.sonatype.org/" if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") - else Some("releases" at nexus + "service/local/staging/deploy/maven2") + else Some("releases" at nexus + "service/local/staging/deploy/maven2") } publishMavenStyle := true pomIncludeRepository := { _ => false }