From 3db3b2702aa7c58624d7ef784cc9bc84861c1087 Mon Sep 17 00:00:00 2001 From: Alfredo Beaumont Date: Mon, 2 Oct 2017 14:24:54 +0200 Subject: [PATCH] build: Fix artifact release code --- java/build.sbt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/java/build.sbt b/java/build.sbt index 4142091..f5f6c9b 100644 --- a/java/build.sbt +++ b/java/build.sbt @@ -55,9 +55,10 @@ addArtifact(artifact in (Compile, assembly), assembly) isSnapshot := version.value endsWith "SNAPSHOT" -publishTo := Some( +publishTo := { + val nexus = "https://oss.sonatype.org/" if (isSnapshot.value) - "snapshots" at nexus + "content/repositories/snapshots" + Some("snapshots" at nexus + "content/repositories/snapshots") else - "releases" at nexus + "service/local/staging/deploy/maven2" -) + Some("releases" at nexus + "service/local/staging/deploy/maven2") +}