Fix build when bloop plugin is present

When using sbt-bloop, the build doesn't compile anymore. The reason
seems to be incomptible `sbt-io` dependencies pulled in from
`sbt-bloop` and `sbt-native-packager` (as well as `sbt-github-pages`).
Interestingly, the build compiles fine if either one of these plugins
is removed. Only together with `sbt-bloop` the build fails to compile.
The workaround is to explicitely pull in the io depenency based on the
sbt version in use.
This commit is contained in:
eikek 2024-02-26 10:20:45 +01:00
parent 620d97bd06
commit 10036cd57b

View File

@ -1,2 +1,7 @@
libraryDependencies ++=
Seq("com.typesafe" % "config" % "1.4.3")
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.4.3",
// sbt-native-packager and sbt-github-pages pull in an incompatible
// version of sbt-io which will break the build as soon as the
// sbt-bloop plugin is also present
"org.scala-sbt" %% "io" % sbtVersion.value
)