diff --git a/app/actors/Cleaner.scala b/app/actors/Cleaner.scala index d25d596..b4e8cd7 100644 --- a/app/actors/Cleaner.scala +++ b/app/actors/Cleaner.scala @@ -1,10 +1,10 @@ package actors -import akka.actor.{Actor, ActorLogging, ActorRef, ActorSystem} import cats.data.EitherT import com.google.inject.name.Named import com.google.inject.{Inject, Singleton} -import com.typesafe.akka.extension.quartz.QuartzSchedulerExtension +import org.apache.pekko.actor.{Actor, ActorLogging, ActorRef, ActorSystem} +import org.apache.pekko.extension.quartz.QuartzSchedulerExtension import services.{PeopleService, UnifiService} import scala.concurrent.ExecutionContext diff --git a/app/filters/TLSFilter.scala b/app/filters/TLSFilter.scala index c9716b2..0ce519a 100644 --- a/app/filters/TLSFilter.scala +++ b/app/filters/TLSFilter.scala @@ -1,7 +1,7 @@ package filters -import akka.stream.Materializer import com.google.inject.Inject +import org.apache.pekko.stream.Materializer import play.api.Environment import play.api.mvc._ diff --git a/app/modules/WifiModule.scala b/app/modules/WifiModule.scala index 7b3089a..ee693e6 100644 --- a/app/modules/WifiModule.scala +++ b/app/modules/WifiModule.scala @@ -2,9 +2,9 @@ package modules import actors.{Cleaner, CleanerScheduler} import com.google.inject.AbstractModule -import play.api.libs.concurrent.AkkaGuiceSupport +import play.api.libs.concurrent.PekkoGuiceSupport -class WifiModule extends AbstractModule with AkkaGuiceSupport { +class WifiModule extends AbstractModule with PekkoGuiceSupport { override def configure(): Unit = { bindActor[Cleaner]("cleaner-actor") bind(classOf[CleanerScheduler]).asEagerSingleton() diff --git a/build.sbt b/build.sbt index 09e889f..237cafd 100644 --- a/build.sbt +++ b/build.sbt @@ -10,7 +10,7 @@ scalaVersion := "2.13.12" libraryDependencies ++= Seq( guice, ws, - "com.enragedginger" %% "akka-quartz-scheduler" % "1.9.3-akka-2.6.x", + "io.github.samueleresca" %% "pekko-quartz-scheduler" % "1.0.0-pekko-1.0.x", "org.typelevel" %% "cats-core" % "2.10.0", - "com.lunatech" %% "play-googleopenconnect" % "2.9.7" + "com.lunatech" %% "play-googleopenconnect" % "3.0.0" ) diff --git a/conf/application.conf b/conf/application.conf index 7806708..7c173d8 100644 --- a/conf/application.conf +++ b/conf/application.conf @@ -70,7 +70,7 @@ play.ws.ssl.loose.acceptAnyCertificate = true play.modules.enabled += "modules.WifiModule" -akka { +pekko { quartz { schedules { Clean { diff --git a/project/plugins.sbt b/project/plugins.sbt index f1309ad..e587d5b 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,3 @@ -addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0") +addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.0") ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always