Skip to content

Commit

Permalink
Move to play 3 / pekko
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Oct 4, 2024
1 parent 67852f8 commit 122be04
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 11 additions & 6 deletions nio-server/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ dependencyOverrides ++= Seq(

libraryDependencies ++= Seq(
ws,
"org.apache.pekko" %% "pekko-stream" % pekko,
"org.apache.pekko" %% "pekko-actor-typed" % pekko,
"org.apache.pekko" %% "pekko-slf4j" % pekko,
"org.apache.pekko" %% "pekko-slf4j" % pekko,
"org.apache.pekko" %% "pekko-serialization-jackson" % pekko,
"org.apache.pekko" %% "pekko-http" % "1.1.0",
"org.apache.pekko" %% "pekko-http-xml" % "1.1.0",
"org.reactivemongo" %% "reactivemongo" % s"$reactiveMongoVersion-pekko.RC13",
Expand Down Expand Up @@ -57,12 +62,12 @@ scalacOptions ++= Seq(

/// ASSEMBLY CONFIG

parallelExecution in Test := false
mainClass in assembly := Some("play.core.server.ProdServerStart")
test in assembly := {}
assemblyJarName in assembly := "nio.jar"
fullClasspath in assembly += Attributed.blank(PlayKeys.playPackageAssets.value)
assemblyMergeStrategy in assembly := {
Test / parallelExecution := false
assembly / mainClass := Some("play.core.server.ProdServerStart")
assembly / test := {}
assembly / assemblyJarName := "nio.jar"
assembly / fullClasspath += Attributed.blank(PlayKeys.playPackageAssets.value)
assembly / assemblyMergeStrategy := {
case PathList("javax", xs @ _*) => MergeStrategy.first
case PathList("META-INF", "native", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", "commons", "logging", xs @ _*) => MergeStrategy.discard
Expand Down
2 changes: 1 addition & 1 deletion nio-server/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ S3-dispatcher {
throughput = 1
}

play.http.secret.key = "nioSecret"
play.http.secret.key = "nioSecretnioSecretnioSecretnioSecretnioSecretnioSecretnioSecretnioSecretnioSecret"
play.http.secret.key = ${?APPLICATION_SECRET}
http.port=9000
http.port=${?HTTP_PORT}
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Dependencies {
val playJsonJodaVersion = "2.9.1"
val reactiveMongoVersion = "1.1.0"
val pekkoKafka = "1.1.0"
val pekko = "1.1.1"
val pekkoKafka = "1.1.0"
val pureConfig = "0.14.0"
val scalaticVersion = "3.2.0"
val catsVersion = "2.2.0"
Expand Down

0 comments on commit 122be04

Please sign in to comment.