From d0045506ccd990ddf9ba3199ecd347dc2831fa05 Mon Sep 17 00:00:00 2001 From: Naftoli Gugenheim Date: Thu, 17 Aug 2017 19:30:09 -0400 Subject: [PATCH] Publish to bintray instead of sonatype --- project/Build.scala | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index 72aaecdc..3a736a8e 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -23,17 +23,17 @@ object ReactiveBuild extends Build { ) val publishingSettings = defaults ++ Seq( - publishTo := ( - if (version.value.trim.endsWith("SNAPSHOT")) - Some(Resolver.sonatypeRepo("snapshots") ) - else - Some("staging" at sonatypeStaging) - ), + publishTo := Some("Reactive Bintray" at "https://api.bintray.com/maven/naftoligug/maven/reactive/;publish=1"), publishMavenStyle := true, credentials ++= { - val f = file("/private/nafg/.credentials") - if(f.exists) Seq(Credentials(f)) - else Nil + sys.env.get("BINTRAYKEY").toSeq map (key => + Credentials( + "Bintray API Realm", + "api.bintray.com", + "naftoligug", + key + ) + ) }, pomExtra := nafg, homepage := Some(url("http://scalareactive.org")),