Merge pull request #1393 from xuwei-k/build-sbt-warning

avoid deprecated method since sbt 0.13.13
This commit is contained in:
Naoki Takezoe
2016-12-29 23:23:23 +09:00
committed by GitHub

View File

@@ -165,9 +165,9 @@ executableKey := {
log info s"built executable webapp ${outputFile}"
outputFile
}
publishTo <<= version { (v: String) =>
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (v.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")
}
publishMavenStyle := true