From 014e74c68b97bd284e6f92ea5e6042199f9c55cf Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Tue, 24 Oct 2017 17:24:20 +0200 Subject: [PATCH] sbt-dynver produces named builds, so use those to detect when to use snapshot repo --- publish.sbt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish.sbt b/publish.sbt index a8a28600c..efef315bc 100644 --- a/publish.sbt +++ b/publish.sbt @@ -1,8 +1,8 @@ publishTo := { val nexus = "https://oss.sonatype.org/" Some { - if (version.value.trim.endsWith("SNAPSHOT")) "snapshots" at nexus + "content/repositories/snapshots" - else "releases" at nexus + "service/local/staging/deploy/maven2" + if (version.value.trim.contains("+")) "snapshots" at nexus + "content/repositories/snapshots" + else "releases" at nexus + "service/local/staging/deploy/maven2" } }