Skip to content

Commit

Permalink
Merge pull request #254 from xuwei-k/slash-syntax
Browse files Browse the repository at this point in the history
use new slash syntax in test
  • Loading branch information
raboof authored Oct 7, 2024
2 parents be97fc4 + 5a3c668 commit f01ae86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sbt-test/git-versioning/find-tag/changes/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git.versionProperty := "DUMMY_BUILD_VERSION"
val checkVersion = taskKey[Unit]("checks the version is the tag versino")
checkVersion := {
val v = version.value
val v2 = (version in ThisBuild).value
val v2 = (ThisBuild / version).value
val tags = git.gitCurrentTags.value
assert(tags == Seq("v1.0.0"), s"Failed to discover git tag, tags: $tags")
assert(v2 == "1.0.0", s"Failed to detect git tag, found ${v}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ git.versionProperty := "DUMMY_BUILD_VERSION"

val checkVersion = taskKey[Unit]("checks the version is the correct versino")
checkVersion := {
val v = (version in a).value
val v2 = (version in b).value
val v = (a / version).value
val v2 = (b / version).value
assert(v == v2, s"multi-module projects should all share the same verison. $v != $v2")
}

0 comments on commit f01ae86

Please sign in to comment.