Skip to content

Commit 0d5d5e2

Browse files
committed
chore: update play and play test
1 parent 295c792 commit 0d5d5e2

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

project/Dependencies.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import sbt._
33

44
object Dependencies {
55

6-
val playVersion = "2.9.1"
7-
val typesafePlay = "com.typesafe.play" %% "play" % playVersion
6+
val playVersion = "3.0.1"
7+
val typesafePlay = "org.playframework" %% "play" % playVersion
88

99
val scalaVersion = "2.13.12"
1010
val smithy4sVersion = "0.17.19"
@@ -20,7 +20,7 @@ object Dependencies {
2020
"software.amazon.smithy" % "smithy-protocol-test-traits" % smithyVersion
2121

2222
val scalatestPlus =
23-
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test
23+
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test
2424
val cats = "org.typelevel" %% "cats-core" % "2.9.0"
2525

2626
lazy val list = Seq(

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ addSbtPlugin("com.codecommit" %% "sbt-github-packages" % "0.5.3")
22
addSbtPlugin("org.wartremover" %% "sbt-wartremover" % "3.1.6")
33
addSbtPlugin("org.scalameta" %% "sbt-scalafmt" % "2.5.2")
44
addSbtPlugin("com.disneystreaming.smithy4s" %% "smithy4s-sbt-codegen" % "0.17.19")
5-
addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.9.1")
5+
addSbtPlugin("org.playframework" %% "sbt-plugin" % "3.0.1")
66
addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "2.0.9")
77

88
ThisBuild / dependencyOverrides ++= Seq(

smithy4play/src/main/scala/de/innfactory/smithy4play/SmithyPlayEndpoint.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package de.innfactory.smithy4play
22

3-
import akka.util.ByteString
4-
import cats.data.{ EitherT, Kleisli }
3+
import cats.data.{EitherT, Kleisli}
54
import cats.implicits.toBifunctorOps
65
import de.innfactory.smithy4play
76
import de.innfactory.smithy4play.middleware.MiddlewareBase
7+
import org.apache.pekko.util.ByteString
88
import play.api.mvc._
9-
import smithy4s.http.{ CodecAPI, HttpEndpoint, Metadata, PathParams }
9+
import smithy4s.http.{CodecAPI, HttpEndpoint, Metadata, PathParams}
1010
import smithy4s.kinds.FunctorInterpreter
1111
import smithy4s.schema.Schema
12-
import smithy4s.{ ByteArray, Endpoint, Service }
12+
import smithy4s.{ByteArray, Endpoint, Service}
1313

14-
import scala.concurrent.{ ExecutionContext, Future }
14+
import scala.concurrent.{ExecutionContext, Future}
1515

1616
class SmithyPlayEndpoint[Alg[_[_, _, _, _, _]], F[_] <: ContextRoute[_], Op[
1717
_,

smithy4playTest/app/Module.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import com.google.inject.AbstractModule
22
import controller.middlewares.MiddlewareRegistry
33
import de.innfactory.smithy4play.middleware.MiddlewareRegistryBase
4-
import play.api.libs.concurrent.AkkaGuiceSupport
4+
import play.api.libs.concurrent.PekkoGuiceSupport
55

66
/** This module handles the bindings for the API to the Slick implementation.
77
*
88
* https://www.playframework.com/documentation/latest/ScalaDependencyInjection#Programmatic-bindings
99
*/
10-
class Module extends AbstractModule with AkkaGuiceSupport {
10+
class Module extends AbstractModule with PekkoGuiceSupport {
1111

1212
override def configure(): Unit =
1313
bind(classOf[MiddlewareRegistryBase]).to(classOf[MiddlewareRegistry])

smithy4playTest/test/TestControllerTest.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class TestControllerTest extends PlaySpec with BaseOneAppPerSuite with FakeAppli
4444
for {
4545
result <- res
4646
headers = result.header.headers.map(v => (v._1, Seq(v._2)))
47-
body <- result.body.consumeData.map(_.toArrayUnsafe())
47+
body <- result.body.consumeData.map(_.toArray)
4848
bodyConsumed = if (result.body.isKnownEmpty) None else Some(body)
4949
contentType = result.body.contentType
5050
headersWithContentType =

0 commit comments

Comments
 (0)