Skip to content

Commit

Permalink
APIS-6747 Upgrade to Play 3.0 (#46)
Browse files Browse the repository at this point in the history
* APIS-6747 Upgrade to Play 3.0

* APIS-6747 Upgrade to Play 3.0
  • Loading branch information
petekirby-ee authored Feb 2, 2024
1 parent a6437ac commit fc915ec
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 0 additions & 2 deletions conf/prod.routes
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
-> / app.Routes
-> / health.Routes
-> / definition.Routes

GET /admin/metrics @com.kenshoo.play.metrics.MetricsController.metrics
11 changes: 7 additions & 4 deletions it/PlatformIntegrationSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@
*/

import com.github.tomakehurst.wiremock.client.WireMock._
import org.apache.pekko.stream.Materializer
import org.scalatestplus.play.guice.GuiceOneAppPerTest
import org.scalatest.TestData

import play.api.{Application, Mode}
import play.api.http.Status.{NO_CONTENT, OK}
import play.api.inject.guice.GuiceApplicationBuilder
import play.api.test.FakeRequest
import play.api.test.Helpers.{contentAsJson, contentAsString, status}

import uk.gov.hmrc.hello.controllers.DocumentationController
import uk.gov.hmrc.hello.common.utils.AsyncHmrcSpec
import uk.gov.hmrc.hello.common.utils.WireMockSugar
import org.scalatest.TestData

class PlatformIntegrationSpec extends AsyncHmrcSpec with GuiceOneAppPerTest with WireMockSugar {

Expand All @@ -40,9 +43,9 @@ class PlatformIntegrationSpec extends AsyncHmrcSpec with GuiceOneAppPerTest with
.in(Mode.Test).build()

trait Setup {
implicit def mat: akka.stream.Materializer = app.injector.instanceOf[akka.stream.Materializer]
val documentationController = app.injector.instanceOf[DocumentationController]
val request = FakeRequest()
implicit def mat: Materializer = app.injector.instanceOf[Materializer]
val documentationController = app.injector.instanceOf[DocumentationController]
val request = FakeRequest()
stubFor(post(urlMatching("http://localhost:11112/registration")).willReturn(aResponse().withStatus(NO_CONTENT)))
}

Expand Down
7 changes: 3 additions & 4 deletions project/AppDependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import play.core.PlayVersion
import sbt._

object AppDependencies {
val bootStrapVersion = "7.19.0"
val bootStrapVersion = "8.4.0"

lazy val dependencies = Seq(
"uk.gov.hmrc" %% "bootstrap-backend-play-28" % bootStrapVersion
"uk.gov.hmrc" %% "bootstrap-backend-play-30" % bootStrapVersion
)

def testDependencies(scope: String) = Seq(
"uk.gov.hmrc" %% "bootstrap-test-play-28" % bootStrapVersion,
"com.vladsch.flexmark" % "flexmark-all" % "0.36.8",
"uk.gov.hmrc" %% "bootstrap-test-play-30" % bootStrapVersion,
"org.scalaj" %% "scalaj-http" % "2.4.2",
"com.github.tomakehurst" % "wiremock-jre8-standalone" % "2.35.0",
"org.mockito" %% "mockito-scala-scalatest" % "1.17.29",
Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resolvers += "HMRC-open-artefacts-maven" at "https://open.artefacts.tax.service.gov.uk/maven2"
resolvers += Resolver.url("HMRC-open-artefacts-ivy", url("https://open.artefacts.tax.service.gov.uk/ivy2"))(Resolver.ivyStylePatterns)

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.19")
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.18.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "2.4.0")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")
addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "3.20.0")
addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "2.5.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.9")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.11")
Expand Down

0 comments on commit fc915ec

Please sign in to comment.