Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
}
Loading