Skip to content

Commit

Permalink
Merge pull request #165 from twitter/jco/update_publishTo
Browse files Browse the repository at this point in the history
Update build publishTo to be consistent with scalding
  • Loading branch information
johnynek committed Feb 26, 2014
2 parents 3dddb45 + 499f1da commit 39f3fd2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ object BijectionBuild extends Build {

pomIncludeRepository := { x => false },

publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("sonatype-snapshots" at nexus + "content/repositories/snapshots")
else
Some("sonatype-releases-upload" at nexus + "service/local/staging/deploy/maven2")
publishTo <<= version { v =>
Some(
if (v.trim.endsWith("SNAPSHOT"))
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
},

pomExtra := (
Expand Down

0 comments on commit 39f3fd2

Please sign in to comment.