Skip to content

Commit

Permalink
Update play-ahc-ws, play-akka-http-server, ... to 3.0.0 (#52)
Browse files Browse the repository at this point in the history
* Update play-ahc-ws, play-akka-http-server, ... to 3.0.0

* Migrate to Play 3 with Pekko

---------

Co-authored-by: Willem Jan Glerum <[email protected]>
  • Loading branch information
lunatech-ops and wjglerum authored Oct 26, 2023
1 parent 12dc396 commit 83e64b9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/actors/Cleaner.scala
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/filters/TLSFilter.scala
Original file line number Diff line number Diff line change
@@ -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._

Expand Down
4 changes: 2 additions & 2 deletions app/modules/WifiModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
2 changes: 1 addition & 1 deletion conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ play.ws.ssl.loose.acceptAnyCertificate = true

play.modules.enabled += "modules.WifiModule"

akka {
pekko {
quartz {
schedules {
Clean {
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 83e64b9

Please sign in to comment.