From 4381ac8812dce9e05b03493f1a845555abb67875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Corbi=C3=A8re?= Date: Sat, 17 Aug 2019 19:25:31 +0200 Subject: [PATCH] Bump version Use Sync instead of the Monad --- build.sbt | 20 +++++++++---------- modules/core/src/main/scala/Main.scala | 2 +- .../core/src/main/scala/repo/CityRepo.scala | 4 ++-- .../src/main/scala/repo/CountryRepo.scala | 4 ++-- .../src/main/scala/repo/LanguageRepo.scala | 4 ++-- .../core/src/main/scala/repo/MasterRepo.scala | 4 ++-- project/build.properties | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/build.sbt b/build.sbt index 7be60c6..5a8f25f 100644 --- a/build.sbt +++ b/build.sbt @@ -1,15 +1,15 @@ -lazy val catsEffectVersion = "1.1.0" -lazy val catsVersion = "1.5.0" -lazy val circeVersion = "0.10.0" -lazy val doobieVersion = "0.6.0" -lazy val fs2Version = "1.0.2" -lazy val kindProjectorVersion = "0.9.9" -lazy val log4catsVersion = "0.2.0" +lazy val catsEffectVersion = "1.4.0" +lazy val catsVersion = "1.6.1" +lazy val circeVersion = "0.11.0" +lazy val doobieVersion = "0.7.0" +lazy val fs2Version = "1.0.5" +lazy val kindProjectorVersion = "0.9.10" +lazy val log4catsVersion = "0.3.0" lazy val sangriaCirceVersion = "1.2.1" lazy val sangriaVersion = "1.4.2" -lazy val scala12Version = "2.12.8" -lazy val http4sVersion = "0.20.0-M4" -lazy val slf4jVersion = "1.7.25" +lazy val scala12Version = "2.12.9" +lazy val http4sVersion = "0.20.10" +lazy val slf4jVersion = "1.7.28" lazy val scalacSettings = Seq( scalacOptions ++= diff --git a/modules/core/src/main/scala/Main.scala b/modules/core/src/main/scala/Main.scala index 515e8e8..30a8f2c 100644 --- a/modules/core/src/main/scala/Main.scala +++ b/modules/core/src/main/scala/Main.scala @@ -97,7 +97,7 @@ object Main extends IOApp { // Our entry point starts the server and blocks forever. def run(args: List[String]): IO[ExitCode] = { - implicit val log = Slf4jLogger.unsafeCreate[IO] + implicit val log = Slf4jLogger.getLogger[IO] resource[IO].use(_ => IO.never.as(ExitCode.Success)) } diff --git a/modules/core/src/main/scala/repo/CityRepo.scala b/modules/core/src/main/scala/repo/CityRepo.scala index 5be8583..a1a4bdc 100644 --- a/modules/core/src/main/scala/repo/CityRepo.scala +++ b/modules/core/src/main/scala/repo/CityRepo.scala @@ -4,7 +4,7 @@ package demo.repo -import cats._ +import cats.effect.Sync import cats.implicits._ import doobie._ import doobie.implicits._ @@ -18,7 +18,7 @@ trait CityRepo[F[_]] { object CityRepo { - def fromTransactor[F[_]: Monad: Logger](xa: Transactor[F]): CityRepo[F] = + def fromTransactor[F[_]: Sync: Logger](xa: Transactor[F]): CityRepo[F] = new CityRepo[F] { val select: Fragment = diff --git a/modules/core/src/main/scala/repo/CountryRepo.scala b/modules/core/src/main/scala/repo/CountryRepo.scala index 80a7f75..575ad5f 100644 --- a/modules/core/src/main/scala/repo/CountryRepo.scala +++ b/modules/core/src/main/scala/repo/CountryRepo.scala @@ -4,8 +4,8 @@ package demo.repo -import cats._ import cats.data._ +import cats.effect.Sync import cats.implicits._ import doobie._ import doobie.implicits._ @@ -21,7 +21,7 @@ trait CountryRepo[F[_]] { object CountryRepo { - def fromTransactor[F[_]: Monad: Logger](xa: Transactor[F]): CountryRepo[F] = + def fromTransactor[F[_]: Sync: Logger](xa: Transactor[F]): CountryRepo[F] = new CountryRepo[F] { val select: Fragment = diff --git a/modules/core/src/main/scala/repo/LanguageRepo.scala b/modules/core/src/main/scala/repo/LanguageRepo.scala index 6841326..b077fa8 100644 --- a/modules/core/src/main/scala/repo/LanguageRepo.scala +++ b/modules/core/src/main/scala/repo/LanguageRepo.scala @@ -4,8 +4,8 @@ package demo.repo -import cats._ import cats.data._ +import cats.effect.Sync import cats.implicits._ import doobie._ import doobie.implicits._ @@ -19,7 +19,7 @@ trait LanguageRepo[F[_]] { object LanguageRepo { - def fromTransactor[F[_]: Monad: Logger](xa: Transactor[F]): LanguageRepo[F] = + def fromTransactor[F[_]: Sync: Logger](xa: Transactor[F]): LanguageRepo[F] = new LanguageRepo[F] { val select: Fragment = diff --git a/modules/core/src/main/scala/repo/MasterRepo.scala b/modules/core/src/main/scala/repo/MasterRepo.scala index 882f310..2470792 100644 --- a/modules/core/src/main/scala/repo/MasterRepo.scala +++ b/modules/core/src/main/scala/repo/MasterRepo.scala @@ -4,7 +4,7 @@ package demo.repo -import cats._ +import cats.effect.Sync import doobie._ import io.chrisdavenport.log4cats.Logger @@ -16,7 +16,7 @@ final case class MasterRepo[F[_]]( object MasterRepo { - def fromTransactor[F[_]: Monad: Logger](xa: Transactor[F]): MasterRepo[F] = + def fromTransactor[F[_]: Sync: Logger](xa: Transactor[F]): MasterRepo[F] = MasterRepo( CityRepo.fromTransactor(xa), CountryRepo.fromTransactor(xa), diff --git a/project/build.properties b/project/build.properties index 0cd8b07..c0bab04 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.2.3 +sbt.version=1.2.8