Created
August 5, 2014 17:40
-
-
Save axel22/096e443cde258abd7c11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val publishCreds: Seq[Setting[_]] = Seq(userPass match { | |
case Some((user, pass)) => | |
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass) | |
case None => | |
val errorMessage = | |
"Publishing to Sonatype is disabled since the \"" + | |
publishUser + "\" and/or \"" + publishPass + "\" environment variables are not set." | |
publish <<= streams.map(_.log.info(errorMessage)) | |
}) | |
val reactiveCollectionsSettings = Defaults.defaultSettings ++ publishCreds ++ Seq ( | |
// etc. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Complete build definition file (
project/Build.scala
) here: https://gist.github.com/axel22/09a229818cd2ea2136b5