From 10036cd57bb41b31856309f9fd4232d6af09ce45 Mon Sep 17 00:00:00 2001 From: eikek Date: Mon, 26 Feb 2024 10:20:45 +0100 Subject: [PATCH] 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. --- project/build.sbt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/project/build.sbt b/project/build.sbt index 6bb9a065..4f90b20e 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -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 +)