diff --git a/.scalafmt.conf b/.scalafmt.conf index a5ab1d3..5f1aeb6 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,4 +1,4 @@ -version = "3.8.3" +version = "3.8.4-RC4" runner.dialect = scala3 align.preset = more diff --git a/app/src/main/scala/RedisSubscriberJob.scala b/app/src/main/scala/RedisSubscriberJob.scala index 8f07ef1..82adba4 100644 --- a/app/src/main/scala/RedisSubscriberJob.scala +++ b/app/src/main/scala/RedisSubscriberJob.scala @@ -23,5 +23,5 @@ object RedisSubscriberJob: .match case Some(request) => executor.add(request) case None => Logger[IO].warn(s"Failed to parse message from lila: $msg") - >> Logger[IO].debug(s"Received message: $msg") + >> Logger[IO].debug(s"Received message: $msg") ) *> pubsub.runMessages).background.void diff --git a/app/src/main/scala/http/MkHttpServer.scala b/app/src/main/scala/http/MkHttpServer.scala index a22df0c..17cc9de 100644 --- a/app/src/main/scala/http/MkHttpServer.scala +++ b/app/src/main/scala/http/MkHttpServer.scala @@ -16,7 +16,7 @@ object MkHttpServer: def apply()(using server: MkHttpServer): MkHttpServer = server - given forAsyncLogger(using Logger[IO]): MkHttpServer = new: + given Logger[IO] => MkHttpServer = new: def newEmber(cfg: HttpServerConfig, httpApp: HttpApp[IO]): Resource[IO, Server] = EmberServerBuilder .default[IO] diff --git a/build.sbt b/build.sbt index dfd454f..6801c95 100644 --- a/build.sbt +++ b/build.sbt @@ -3,7 +3,7 @@ import org.typelevel.scalacoptions.ScalacOptions inThisBuild( Seq( - scalaVersion := "3.5.2", + scalaVersion := "3.6.2", versionScheme := Some("early-semver"), run / fork := true, run / javaOptions += "-Dconfig.override_with_env_vars=true", diff --git a/project/plugins.sbt b/project/plugins.sbt index 4f4f935..b0f6101 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,5 +2,7 @@ addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.4") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.13.0") +resolvers += Resolver.sonatypeRepo("snapshots") +dependencyOverrides += "ch.epfl.scala" % "scalafix-interfaces" % "0.13.0+95-69a3e105-SNAPSHOT" addSbtPlugin("nl.gn0s1s" % "sbt-dotenv" % "3.1.0") addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")