Permalink
Browse files

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) =>
          ^
```
  • Loading branch information...
1 parent 5f45803 commit 1295e621ce9941ff23e91646a2b5d086351c1efb @xuwei-k xuwei-k committed Dec 29, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 build.sbt
View
@@ -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

0 comments on commit 1295e62

Please sign in to comment.