diff --git a/build.sbt b/build.sbt index b7ee701cc..8688c2306 100644 --- a/build.sbt +++ b/build.sbt @@ -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