Skip to content

Commit

Permalink
Merge pull request #126 from bpitman/master
Browse files Browse the repository at this point in the history
fix snapshot release?
  • Loading branch information
bpitman committed Jul 13, 2015
2 parents 33ac312 + bc04b0f commit 8ca1070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions project/Bintray.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object Bintray {
lazy val isPullRequest = sys.env.getOrElse("TRAVIS_PULL_REQUEST", "false") != "false"
lazy val (user, pass) = {
if (isPullRequest) ("dummyUser", "dummyPass")
else (sys env "bintrayUser", sys env "bintrayKey")
else (sys.env.getOrElse("bintrayUser", "missingUser"), sys.env.getOrElse("bintrayKey", "missingKey"))
}
lazy val storeBintrayCredentials = taskKey[Unit]("store bintray credentials")

Expand All @@ -22,7 +22,7 @@ object Bintray {

publishTo := {
if (isSnapshot.value) Some("jfrog" at "https://oss.jfrog.org/oss-snapshot-local/")
else publishTo.value
else Some("bintray" at "https://api.bintray.com/maven/")
},

storeBintrayCredentials := {
Expand Down
2 changes: 1 addition & 1 deletion project/GitVersion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object GitVersion {
val isPullRequest = sys.env.getOrElse("TRAVIS_PULL_REQUEST", "false") != "false"
git.gitDescribedVersion.value getOrElse "0.1-SNAPSHOT" match {
case v if (isPullRequest) => s"0.0.0-PULLREQUEST"
case snapshotVersion(v, n, h) => s"${v}-${"%02d".format(n.toInt)}-${h}-SNAPSHOT"
case snapshotVersion(v, n, h) => s"${v}.${"%02d".format(n.toInt)}-${h}-SNAPSHOT"
case releaseVersion(v) => v
case v => v
}
Expand Down

0 comments on commit 8ca1070

Please sign in to comment.