Skip to content

Commit

Permalink
bugfix: Fix Bloop workaround to use new Bloop plugin version (scala#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Aug 30, 2023
2 parents c58f9f6 + 75c27ec commit 450d233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions project/NoBloopExport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Keys._

/* With <3 from scala-js */
object NoBloopExport {
private lazy val bloopGenerateKey: Option[TaskKey[Option[File]]] = {
private lazy val bloopGenerateKey: Option[TaskKey[Result[Option[File]]]] = {
val optBloopKeysClass: Option[Class[_]] = try {
Some(Class.forName("bloop.integrations.sbt.BloopKeys"))
} catch {
Expand All @@ -12,7 +12,7 @@ object NoBloopExport {

optBloopKeysClass.map { bloopKeysClass =>
val bloopGenerateGetter = bloopKeysClass.getMethod("bloopGenerate")
bloopGenerateGetter.invoke(null).asInstanceOf[TaskKey[Option[File]]]
bloopGenerateGetter.invoke(null).asInstanceOf[TaskKey[Result[Option[File]]]]
}
}

Expand All @@ -23,8 +23,8 @@ object NoBloopExport {
Nil
case Some(key) =>
Seq(
Compile / key := None,
Test / key := None,
Compile / key := Value(None),
Test / key := Value(None),
)
}
}
Expand Down

0 comments on commit 450d233

Please sign in to comment.