(refs #1748) Exclude gitbucket.war from published artifacts

This commit is contained in:
Naoki Takezoe
2017-10-22 01:24:43 +09:00
parent 86ff842eb2
commit f36bcef50c

View File

@@ -1,4 +1,5 @@
import com.typesafe.sbt.license.{LicenseInfo, DepModuleInfo} import com.typesafe.sbt.license.{LicenseInfo, DepModuleInfo}
import com.typesafe.sbt.pgp.PgpKeys._
val Organization = "io.github.gitbucket" val Organization = "io.github.gitbucket"
val Name = "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 // Exclude a war file from published artifacts
packagedArtifacts := { signedArtifacts := {
packagedArtifacts.value.filterNot { case (artifact, file) => file.getName.endsWith(".war") } packagedArtifacts.value.filterNot { case (artifact, file) => file.getName.endsWith(".war") }
} }
@@ -197,7 +198,7 @@ executableKey := {
publishTo := { publishTo := {
val nexus = "https://oss.sonatype.org/" val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots") 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 publishMavenStyle := true
pomIncludeRepository := { _ => false } pomIncludeRepository := { _ => false }