diff --git a/project/build.sbt b/project/build.sbt index 4f90b20e1..3c4eef6cc 100644 --- a/project/build.sbt +++ b/project/build.sbt @@ -1,7 +1,10 @@ +// Get io version from environment or fall back to a known working version +def ioVersion = sys.env.get("BUILD_VERSION") + .orElse(sys.props.get("sbt.build.version")) + .getOrElse("1.10.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 + // Use the determined version instead of sbtVersion.value + "org.scala-sbt" %% "io" % ioVersion )