From 1295e621ce9941ff23e91646a2b5d086351c1efb Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Thu, 29 Dec 2016 14:41:49 +0900 Subject: [PATCH] avoid deprecated method since sbt 0.13.13 ``` build.sbt:168: warning: `<<=` operator is deprecated. Use `key := { x.value }` or `key ~= (old => { newValue })`. See http://www.scala-sbt.org/0.13/docs/Migrating-from-sbt-012x.html publishTo <<= version { (v: String) => ^ ``` --- build.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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