From 93e13b906881e5255f216d095d3a13b5ac8e7b61 Mon Sep 17 00:00:00 2001 From: Guillaume Bort Date: Fri, 8 Sep 2017 11:47:09 +0200 Subject: [PATCH] Fix sonatype publishing --- build.sbt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sbt b/build.sbt index b2e094f53..c10e13cfd 100644 --- a/build.sbt +++ b/build.sbt @@ -36,6 +36,12 @@ lazy val commonSettings = Seq( "criteo-oss", sys.env.getOrElse("SONATYPE_PASSWORD", "") ), + publishTo := Some( + if (isSnapshot.value) + Opts.resolver.sonatypeSnapshots + else + Opts.resolver.sonatypeStaging + ), pgpPassphrase := sys.env.get("SONATYPE_PASSWORD").map(_.toArray), pgpSecretRing := file(".travis/secring.gpg"), pgpPublicRing := file(".travis/pubring.gpg"),