diff --git a/build.sbt b/build.sbt index 03d5538..eb5a434 100644 --- a/build.sbt +++ b/build.sbt @@ -17,7 +17,7 @@ addSbtJsEngine("1.3.5") libraryDependencies ++= Seq( "org.webjars.npm" % "uglify-js" % "3.16.3", - "io.monix" %% "monix" % "2.3.3" + "io.monix" %% "monix" % "3.4.1" ) // Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed diff --git a/src/main/scala/com/typesafe/sbt/uglify/SbtUglify.scala b/src/main/scala/com/typesafe/sbt/uglify/SbtUglify.scala index b1ae705..d5d21b8 100644 --- a/src/main/scala/com/typesafe/sbt/uglify/SbtUglify.scala +++ b/src/main/scala/com/typesafe/sbt/uglify/SbtUglify.scala @@ -275,7 +275,7 @@ object SbtUglify extends AutoPlugin { parallelism = java.lang.Runtime.getRuntime.availableProcessors ) val result = Await.result( - resultObservable.toListL.runAsync(uglifyPool), + resultObservable.toListL.runToFuture(uglifyPool), Duration.Inf // TODO: really? Do we need to run this whole thing async actually since sbt-web 1.5? // sbt-web 1.5 removed usage of akka internally and is not async anymore, so we might // can get rid of it here too (meaning removing this monix stuff)