aboutsummaryrefslogtreecommitdiff
path: root/project/uniqueVersion.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-05-06 10:51:29 +0200
committerJakob Odersky <jodersky@gmail.com>2015-05-06 12:13:11 +0200
commit5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08 (patch)
treeaf3d48f72ac401fae995b8c9e31f4c96c038c7b2 /project/uniqueVersion.scala
parent8a5734ed1bf73838a274409a929d1728bbd8cd40 (diff)
downloadakka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.gz
akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.bz2
akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.zip
refactor build
Diffstat (limited to 'project/uniqueVersion.scala')
-rw-r--r--project/uniqueVersion.scala21
1 files changed, 0 insertions, 21 deletions
diff --git a/project/uniqueVersion.scala b/project/uniqueVersion.scala
deleted file mode 100644
index 1a7860f..0000000
--- a/project/uniqueVersion.scala
+++ /dev/null
@@ -1,21 +0,0 @@
-import sbt._
-import Keys._
-
-object UniqueVersionKeys {
-
- val gitHeadCommitSha = settingKey[String]("Current commit sha.")
- val baseVersion = settingKey[String]("Base part of version, string without unique hash appended.")
- val isRelease = settingKey[Boolean]("Is this a release? Should the unique hash be appended to the version string?")
-
-}
-
-object UniqueVersionDefaults {
- import UniqueVersionKeys._
-
- lazy val settings: Seq[Setting[_]] = Seq(
- gitHeadCommitSha := Process("git rev-parse HEAD").lines.head,
- isRelease := sys.props("release") == "true",
- version := { if (isRelease.value) baseVersion.value else baseVersion.value + "-" + gitHeadCommitSha.value }
- )
-
-} \ No newline at end of file