aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-12-03 14:44:33 -0800
committerJakob Odersky <jakob@odersky.com>2017-12-03 14:50:55 -0800
commit1c07512716d98e4424760e88f7f3378fc5708b04 (patch)
tree3758fb6953bbe137f4cfa822690586189258a7d4 /build.sbt
parent1155700447a091a21646643cef9605878b238b10 (diff)
downloadakka-serial-1c07512716d98e4424760e88f7f3378fc5708b04.tar.gz
akka-serial-1c07512716d98e4424760e88f7f3378fc5708b04.tar.bz2
akka-serial-1c07512716d98e4424760e88f7f3378fc5708b04.zip
Fix publishingv4.1.2
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt10
1 files changed, 6 insertions, 4 deletions
diff --git a/build.sbt b/build.sbt
index d04e880..f6bdd78 100644
--- a/build.sbt
+++ b/build.sbt
@@ -20,10 +20,12 @@ organization in ThisBuild := "ch.jodersky"
licenses in ThisBuild := Seq(("BSD New", url("http://opensource.org/licenses/BSD-3-Clause")))
homepage in ThisBuild := Some(url("https://jodersky.github.io/akka-serial"))
publishMavenStyle in ThisBuild := true
-publishTo in ThisBuild := {
- val nexus = "https://oss.sonatype.org/"
- Some("releases" at nexus + "service/local/staging/deploy/maven2")
-}
+publishTo in ThisBuild := Some(
+ if (isSnapshot.value)
+ Opts.resolver.sonatypeSnapshots
+ else
+ Opts.resolver.sonatypeStaging
+)
pomExtra in ThisBuild := {
<scm>
<url>git@github.com:jodersky/akka-serial.git</url>