Skip to content

Commit

Permalink
Merge pull request #461 from hmrc/DLS-11010
Browse files Browse the repository at this point in the history
DLS-11010: [GMP] - Connect Mongo DB to GMP
  • Loading branch information
emanfalola9998 authored Oct 15, 2024
2 parents 6eef0d7 + 28712ca commit 37b5ac8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ security.headers.filter.enabled = true
play.modules.enabled += "uk.gov.hmrc.play.bootstrap.HttpClientV2Module"
play.modules.enabled += "uk.gov.hmrc.play.bootstrap.AuthModule"
play.modules.enabled += "config.GmpModule"
play.modules.enabled += "uk.gov.hmrc.mongo.play.PlayMongoModule"

# Custom error handler
play.http.errorHandler = "config.MyErrorHandler"

mongodb {
uri = "mongodb://localhost:27017/"${appName}
timeToLiveInSeconds = 900
}

play {
i18n.langs = ["en-GB","en-UK","cy-GB"]
http {
Expand Down
12 changes: 8 additions & 4 deletions project/AppDependencies.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import play.sbt.PlayImport._
import sbt._
import play.sbt.PlayImport.*
import sbt.*

object AppDependencies {

private val playSuffix = "-play-30"
private val bootstrapVersion = "9.5.0"
private val hmrcMongoVersion = "2.2.0"

val compile: Seq[ModuleID] = Seq(
ws,
Expand All @@ -18,15 +19,18 @@ object AppDependencies {
"org.typelevel" %% "cats-core" % "2.12.0",
"com.fasterxml.jackson.module" %% "jackson-module-scala" % "2.17.2",
compilerPlugin("com.github.ghik" % "silencer-plugin" % "1.7.14" cross CrossVersion.full),
"com.github.ghik" % "silencer-lib" % "1.7.14" % Provided cross CrossVersion.full
"com.github.ghik" % "silencer-lib" % "1.7.14" % Provided cross CrossVersion.full,
"uk.gov.hmrc.mongo" %% s"hmrc-mongo$playSuffix" % hmrcMongoVersion

)

val test: Seq[ModuleID] = Seq(
"org.mockito" %% "mockito-scala-scalatest" % "1.17.37",
"org.scalatestplus" %% "scalacheck-1-17" % "3.2.18.0",
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.1",
"uk.gov.hmrc" %% s"bootstrap-test$playSuffix" % bootstrapVersion,
"org.jsoup" % "jsoup" % "1.18.1"
"org.jsoup" % "jsoup" % "1.18.1",
"uk.gov.hmrc.mongo" %% s"hmrc-mongo-test$playSuffix" % hmrcMongoVersion
).map(_ % "test")

val all: Seq[ModuleID] = compile ++ test
Expand Down

0 comments on commit 37b5ac8

Please sign in to comment.