Skip to content

Commit 450d233

Browse files
authored
bugfix: Fix Bloop workaround to use new Bloop plugin version (#18485)
2 parents c58f9f6 + 75c27ec commit 450d233

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/NoBloopExport.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Keys._
33

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

1313
optBloopKeysClass.map { bloopKeysClass =>
1414
val bloopGenerateGetter = bloopKeysClass.getMethod("bloopGenerate")
15-
bloopGenerateGetter.invoke(null).asInstanceOf[TaskKey[Option[File]]]
15+
bloopGenerateGetter.invoke(null).asInstanceOf[TaskKey[Result[Option[File]]]]
1616
}
1717
}
1818

@@ -23,8 +23,8 @@ object NoBloopExport {
2323
Nil
2424
case Some(key) =>
2525
Seq(
26-
Compile / key := None,
27-
Test / key := None,
26+
Compile / key := Value(None),
27+
Test / key := Value(None),
2828
)
2929
}
3030
}

0 commit comments

Comments
 (0)