Skip to content

Commit

Permalink
chore: update play and play test
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeQuadrat committed Jan 15, 2024
1 parent 295c792 commit 0d5d5e2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import sbt._

object Dependencies {

val playVersion = "2.9.1"
val typesafePlay = "com.typesafe.play" %% "play" % playVersion
val playVersion = "3.0.1"
val typesafePlay = "org.playframework" %% "play" % playVersion

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

val scalatestPlus =
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1" % Test
val cats = "org.typelevel" %% "cats-core" % "2.9.0"

lazy val list = Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ addSbtPlugin("com.codecommit" %% "sbt-github-packages" % "0.5.3")
addSbtPlugin("org.wartremover" %% "sbt-wartremover" % "3.1.6")
addSbtPlugin("org.scalameta" %% "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.disneystreaming.smithy4s" %% "smithy4s-sbt-codegen" % "0.17.19")
addSbtPlugin("com.typesafe.play" %% "sbt-plugin" % "2.9.1")
addSbtPlugin("org.playframework" %% "sbt-plugin" % "3.0.1")
addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "2.0.9")

ThisBuild / dependencyOverrides ++= Seq(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package de.innfactory.smithy4play

import akka.util.ByteString
import cats.data.{ EitherT, Kleisli }
import cats.data.{EitherT, Kleisli}
import cats.implicits.toBifunctorOps
import de.innfactory.smithy4play
import de.innfactory.smithy4play.middleware.MiddlewareBase
import org.apache.pekko.util.ByteString
import play.api.mvc._
import smithy4s.http.{ CodecAPI, HttpEndpoint, Metadata, PathParams }
import smithy4s.http.{CodecAPI, HttpEndpoint, Metadata, PathParams}
import smithy4s.kinds.FunctorInterpreter
import smithy4s.schema.Schema
import smithy4s.{ ByteArray, Endpoint, Service }
import smithy4s.{ByteArray, Endpoint, Service}

import scala.concurrent.{ ExecutionContext, Future }
import scala.concurrent.{ExecutionContext, Future}

class SmithyPlayEndpoint[Alg[_[_, _, _, _, _]], F[_] <: ContextRoute[_], Op[
_,
Expand Down
4 changes: 2 additions & 2 deletions smithy4playTest/app/Module.scala
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import com.google.inject.AbstractModule
import controller.middlewares.MiddlewareRegistry
import de.innfactory.smithy4play.middleware.MiddlewareRegistryBase
import play.api.libs.concurrent.AkkaGuiceSupport
import play.api.libs.concurrent.PekkoGuiceSupport

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

override def configure(): Unit =
bind(classOf[MiddlewareRegistryBase]).to(classOf[MiddlewareRegistry])
Expand Down
2 changes: 1 addition & 1 deletion smithy4playTest/test/TestControllerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TestControllerTest extends PlaySpec with BaseOneAppPerSuite with FakeAppli
for {
result <- res
headers = result.header.headers.map(v => (v._1, Seq(v._2)))
body <- result.body.consumeData.map(_.toArrayUnsafe())
body <- result.body.consumeData.map(_.toArray)
bodyConsumed = if (result.body.isKnownEmpty) None else Some(body)
contentType = result.body.contentType
headersWithContentType =
Expand Down

0 comments on commit 0d5d5e2

Please sign in to comment.