Skip to content

Instantly share code, notes, and snippets.

@axel22
Created August 5, 2014 17:40
Show Gist options
  • Save axel22/096e443cde258abd7c11 to your computer and use it in GitHub Desktop.
Save axel22/096e443cde258abd7c11 to your computer and use it in GitHub Desktop.
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.
@axel22
Copy link
Author

axel22 commented Aug 5, 2014

Complete build definition file (project/Build.scala) here: https://gist.github.com/axel22/09a229818cd2ea2136b5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment