Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into swagger-api
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Jan 11, 2018
2 parents 2c3620d + fd58270 commit 93d4307
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ version in ThisBuild := {
if (git.gitCurrentTags.value.nonEmpty) {
git.gitDescribedVersion.value.get
} else {
git.gitCurrentBranch.value + "-" + git.gitHeadCommit.value.get.take(8) + "-SNAPSHOT"
if (git.gitHeadCommit.value.contains(git.gitCurrentBranch.value)) {
git.gitHeadCommit.value.get.take(8) + "-SNAPSHOT"
} else {
git.gitCurrentBranch.value + "-" + git.gitHeadCommit.value.get.take(8) + "-SNAPSHOT"
}
}
}

Expand Down

0 comments on commit 93d4307

Please sign in to comment.