Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 12, 2024
1 parent 2fbd873 commit 355f811
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sbtdynver/src/sbt-test/dynver/custom-version-string/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ def versionFmt(out: sbtdynver.GitDescribeOutput): String = {

def fallbackVersion(d: java.util.Date): String = s"HEAD-${sbtdynver.DynVer timestamp d}"

inThisBuild(List(
version := dynverGitDescribeOutput.value.mkVersion(versionFmt, fallbackVersion(dynverCurrentDate.value)),
dynver := {
val d = new java.util.Date
sbtdynver.DynVer.getGitDescribeOutput(d).mkVersion(versionFmt, fallbackVersion(d))
}
))
ThisBuild / version := dynverGitDescribeOutput.value.mkVersion(versionFmt, fallbackVersion(dynverCurrentDate.value))
ThisBuild / dynver := {
val d = new java.util.Date
sbtdynver.DynVer.getGitDescribeOutput(d).mkVersion(versionFmt, fallbackVersion(d))
}


def tstamp = Def.setting(sbtdynver.DynVer timestamp dynverCurrentDate.value)
def headSha = {
Expand Down

0 comments on commit 355f811

Please sign in to comment.