Skip to content

Commit ec6ead3

Browse files
tiborrrTibor Casteleijn
and
Tibor Casteleijn
authored
Add metals and bloop to gitignore (#2898)
* Modify `build.sbt` to dynamically fetch the IO version from environment variables with a fallback to version 1.10.3, rather than using the sbt version value. * add vscode bloop and metals files --------- Co-authored-by: Tibor Casteleijn <[email protected]>
1 parent 0a3e7ba commit ec6ead3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ sbt.json
3434
/yarn.lock
3535
.metals
3636
.vscode
37+
.bloop
38+
metals.sbt

project/build.sbt

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
// Get io version from environment or fall back to a known working version
2+
def ioVersion = sys.env
3+
.get("BUILD_VERSION")
4+
.orElse(sys.props.get("sbt.build.version"))
5+
.getOrElse("1.10.3")
6+
17
libraryDependencies ++= Seq(
28
"com.typesafe" % "config" % "1.4.3",
3-
// sbt-native-packager and sbt-github-pages pull in an incompatible
4-
// version of sbt-io which will break the build as soon as the
5-
// sbt-bloop plugin is also present
6-
"org.scala-sbt" %% "io" % sbtVersion.value
9+
// Use the determined version instead of sbtVersion.value
10+
"org.scala-sbt" %% "io" % ioVersion
711
)

0 commit comments

Comments
 (0)