From 4773acd9302dd2216ae9af155fb7fe04db59b918 Mon Sep 17 00:00:00 2001 From: 47erbot Date: Thu, 3 Feb 2022 20:26:45 +0100 Subject: [PATCH] Update http4s-blaze-client, http4s-circe to 0.23.8 --- build.sbt | 6 +++--- .../scalaexercises/exercises/compiler/Compiler.scala | 12 +++++------- 2 files changed, 8 insertions(+), 10 deletions(-) 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,