Skip to content

Commit

Permalink
Added automatic git sha suffix to private astraea builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Mar 4, 2020
1 parent d895bbf commit 5b7fb33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-astraea.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import com.typesafe.sbt.git.DefaultReadableGit

// Internal Astraea-specific overides
ThisBuild / version := "0.9.0-astraea"
val sha = new DefaultReadableGit(file(".")).withGit(_.headCommitSha)
ThisBuild / version := "0.9.0-astraea+" + sha.map(_.take(7)).getOrElse("0000000")
ThisBuild / credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
publishTo := {
val base = "https://s22s.mycloudrepo.io/repositories"
Expand Down

0 comments on commit 5b7fb33

Please sign in to comment.