Skip to content

Commit a4e980b

Browse files
committed
Reformat with scalafmt 3.8.5
Executed command: scalafmt --non-interactive
1 parent 2c1aec8 commit a4e980b

File tree

23 files changed

+22
-27
lines changed

23 files changed

+22
-27
lines changed

src/sbt-test/git-versioning/find-environment-variable/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ checkVersion := {
55
val v = version.value
66
val prop = sys.props("project.version")
77
assert(v == prop, s"Failed to set version to environment variable. Found: $v, Expected: $prop")
8-
}
8+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))

src/sbt-test/git-versioning/find-tag-newest/changes/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ checkVersion := {
1010
val Seq(v) = spaceDelimited("<arg>").parsed
1111
val v2 = version.value
1212
assert(v == v2, s"Expected version is wrong, found ${v2}, expected ${v}")
13-
}
13+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))

src/sbt-test/git-versioning/find-tag/changes/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ checkVersion := {
1212
assert(v2 == "1.0.0", s"Failed to detect git tag, found ${v}")
1313
assert(v == "1.0.0", s"Version from ThisBuild not used, found ${v}")
1414
assert(isSnapshot.value == false, "For tagged git repos, snapshot should not be true.")
15-
}
15+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))

src/sbt-test/git-versioning/get-message/changes/build.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ expectAMessage := {
1212
val headMessage = git.gitHeadMessage.value
1313
assert(headMessage.get == expectedMessage, s"Expected head message to equal '${expectedMessage}', found ${headMessage}")
1414
}
15-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))

src/sbt-test/git-versioning/multi-module-project-use-describe/changes/build.sbt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
31
val commonSettings = Seq(
42
git.useGitDescribe := true,
53
git.gitDescribePatterns := Seq(s"${name.value}-*"),
64
git.gitTagToVersionNumber := { tag =>
7-
if(tag matches s"${name.value}-[0-9].*") Some(tag.replace(s"${name.value}-", ""))
5+
if (tag matches s"${name.value}-[0-9].*") Some(tag.replace(s"${name.value}-", ""))
86
else None
97
}
108
)
@@ -24,4 +22,4 @@ checkVersion := {
2422
val v2 = (b / version).value
2523
assert(v.startsWith("1.0-1-"), s"multi-module projects should get a version with the matching git describe pattern. $v does not match '1.0-1-'")
2624
assert(v2 == "2.0", s"multi-module projects should get a version with the matching git describe pattern. $v2 != 2.0")
27-
}
25+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))
1+
addSbtPlugin("com.github.sbt" % "sbt-git" % sys.props("project.version"))

0 commit comments

Comments
 (0)