-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from eed3si9n/wip/cross
sbt 2.x build setting, take 3
- Loading branch information
Showing
10 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# In sbt 2.x, this fails to load | ||
# [error] java.lang.RuntimeException: Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Version: HEAD+20241012-0028 | ||
# [error] at sbtdynver.GitDescribeOutput$OptGitDescribeOutputOps$.assertTagVersion$extension(DynVer.scala:130) | ||
# [error] at sbtdynver.DynVerPlugin$.assertTagVersion$lzyINIT1$$anonfun$1(DynVerPlugin.scala:65) | ||
|
||
-> check |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he | |
|
||
TaskKey[Unit]("gitInitSetup") := { | ||
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log) | ||
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp")) | ||
"git config --global init.defaultBranch main".!!(streams.value.log) | ||
"git init".!!(streams.value.log) | ||
"git config user.email [email protected]".!!(streams.value.log) | ||
"git config user.name dynver".!!(streams.value.log) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he | |
|
||
TaskKey[Unit]("gitInitSetup") := { | ||
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log) | ||
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp")) | ||
"git config --global init.defaultBranch main".!!(streams.value.log) | ||
"git init".!!(streams.value.log) | ||
"git config user.email [email protected]".!!(streams.value.log) | ||
"git config user.name dynver".!!(streams.value.log) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0-1-${he | |
|
||
TaskKey[Unit]("gitInitSetup") := { | ||
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log) | ||
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp")) | ||
"git config --global init.defaultBranch main".!!(streams.value.log) | ||
"git init".!!(streams.value.log) | ||
"git config user.email [email protected]".!!(streams.value.log) | ||
"git config user.name dynver".!!(streams.value.log) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ TaskKey[Unit]("checkOnTagAndCommitDirty") := check(version.value, s"1.0.0+1-${he | |
|
||
TaskKey[Unit]("gitInitSetup") := { | ||
implicit def log2log(log: Logger): scala.sys.process.ProcessLogger = sbtLoggerToScalaSysProcessLogger(log) | ||
IO.writeLines(baseDirectory.value / ".gitignore", List("target", ".bsp")) | ||
"git config --global init.defaultBranch main".!!(streams.value.log) | ||
"git init".!!(streams.value.log) | ||
"git config user.email [email protected]".!!(streams.value.log) | ||
"git config user.name dynver".!!(streams.value.log) | ||
|