diff --git a/build.sbt b/build.sbt index f316b98..d99869b 100755 --- a/build.sbt +++ b/build.sbt @@ -14,9 +14,9 @@ addCommandAlias("ci-publish", ";github; ci-release") lazy val V = new { val cats: String = "2.7.0" val collectioncompat: String = "2.6.0" - val github4s: String = "0.28.5" - val http4s: String = "0.21.31" - val runtime: String = "0.6.4" + val github4s: String = "0.30.0" + val http4s: String = "0.23.8" + val runtime: String = "0.7.0" val scala: String = "2.13.8" val scala212: String = "2.12.15" val scalacheck: String = "1.15.4" diff --git a/compiler/src/main/scala/org/scalaexercises/exercises/compiler/Compiler.scala b/compiler/src/main/scala/org/scalaexercises/exercises/compiler/Compiler.scala index cabde06..fae2fa2 100644 --- a/compiler/src/main/scala/org/scalaexercises/exercises/compiler/Compiler.scala +++ b/compiler/src/main/scala/org/scalaexercises/exercises/compiler/Compiler.scala @@ -24,11 +24,10 @@ import cats.implicits._ import github4s.Github import Comments.Mode import CommentRendering.RenderedComment -import cats.effect.{ContextShift, IO} +import cats.effect.IO +import cats.effect.unsafe.IORuntime import github4s.domain.Commit -import org.http4s.client.blaze.BlazeClientBuilder - -import scala.concurrent.ExecutionContext +import org.http4s.blaze.client.BlazeClientBuilder class CompilerJava { def compile( @@ -59,10 +58,9 @@ case class Compiler() { lazy val sourceTextExtractor = new SourceTextExtraction() - implicit val cs: ContextShift[IO] = IO.contextShift(ExecutionContext.global) - implicit val ec: ExecutionContext = ExecutionContext.global + implicit val ioRuntime: IORuntime = IORuntime.global - lazy val clientResource = BlazeClientBuilder[IO](ec).resource + lazy val clientResource = BlazeClientBuilder[IO].resource def compile( library: Library,