Skip to content

Commit

Permalink
refactor: Replace Akka with Pekko
Browse files Browse the repository at this point in the history
  • Loading branch information
QuadStingray committed Oct 12, 2023
1 parent cbe9f93 commit 364f739
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions build_test.sbt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ Test / scalacOptions ++= Seq("-Yrangepos")
// Test
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test

libraryDependencies += "de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "4.6.3" % Test

val AkkaVersion = "2.6.20" // Last Apache Licence Version
val AkkaHttpVersion = "10.2.10" // Last Apache Licence Version
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion % Test,
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion % Test
)

val sttClientVersion = "3.8.15"
libraryDependencies += "com.softwaremill.sttp.client3" %% "akka-http-backend" % sttClientVersion % Test
libraryDependencies += "de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "4.9.2" % Test

val PekkoVersion = "1.0.1"
libraryDependencies += "org.apache.pekko" %% "pekko-slf4j" % PekkoVersion

libraryDependencies += "org.apache.pekko" %% "pekko-stream" % PekkoVersion

libraryDependencies += "org.apache.pekko" %% "pekko-http" % "1.0.0" % Test



val sttClientVersion = "3.9.0"
libraryDependencies += "com.softwaremill.sttp.client3" %% "pekko-http-backend" % sttClientVersion % Test
libraryDependencies += "com.softwaremill.sttp.client3" %% "core" % sttClientVersion % Test
4 changes: 2 additions & 2 deletions src/test/scala/dev/mongocamp/micrometer/mongodb/MongoTestServer.scala
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import de.flapdoodle.reverse.TransitionWalker
import de.flapdoodle.reverse.transitions.Start
import dev.mongocamp.driver.mongodb.database.DatabaseProvider
import sttp.capabilities
import sttp.capabilities.akka.AkkaStreams
import sttp.capabilities.pekko.PekkoStreams
import sttp.client3._
import sttp.client3.akkahttp.AkkaHttpBackend
import sttp.client3.pekkohttp.PekkoHttpBackend
import sttp.model.Method

import scala.concurrent.duration.DurationInt
Expand Down

0 comments on commit 364f739

Please sign in to comment.