Skip to content

Commit

Permalink
Fix sonatype publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Bort committed Sep 8, 2017
1 parent e4f85ef commit 93e13b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 93e13b9

Please sign in to comment.