-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
61 lines (57 loc) · 2.89 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import play.sbt.PlayImport.PlayKeys
import play.sbt.routes.RoutesKeys
lazy val microservice = Project("catalogue-frontend", file("."))
.enablePlugins(PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
majorVersion := 5,
scalaVersion := "3.3.4",
PlayKeys.playDefaultPort := 9017,
libraryDependencies ++= compile ++ test,
RoutesKeys.routesImport ++= Seq(
"uk.gov.hmrc.cataloguefrontend.model._",
"uk.gov.hmrc.cataloguefrontend.platforminitiatives.DisplayType",
"uk.gov.hmrc.cataloguefrontend.shuttering.ShutterType",
"uk.gov.hmrc.cataloguefrontend.binders.Binders._",
"uk.gov.hmrc.play.bootstrap.binders.RedirectUrl",
"uk.gov.hmrc.cataloguefrontend.connector.BuildDeployApiConnector.PrototypeStatus",
"uk.gov.hmrc.cataloguefrontend.createrepository.RepoType",
"uk.gov.hmrc.cataloguefrontend.servicemetrics.LogMetricId",
"uk.gov.hmrc.cataloguefrontend.vulnerabilities.CurationStatus"
),
TwirlKeys.templateImports ++= Seq(
"uk.gov.hmrc.cataloguefrontend.model._",
"uk.gov.hmrc.cataloguefrontend.view.ViewHelper.csrfFormField",
"uk.gov.hmrc.cataloguefrontend.view.helper.html._",
"uk.gov.hmrc.cataloguefrontend.view.partials.{html => partials}",
"uk.gov.hmrc.cataloguefrontend.view.html.standard_layout",
"uk.gov.hmrc.cataloguefrontend.CatalogueFrontendSwitches",
"views.html.helper.CSPNonce"
),
// https://www.scala-lang.org/2021/01/12/configuring-and-suppressing-warnings.html
// suppress unused-imports in twirl and routes files
scalacOptions += "-Wconf:msg=unused import&src=html/.*:s",
scalacOptions += "-Wconf:src=routes/.*:s",
scalacOptions += "-Wconf:msg=Flag.*repeatedly:s",
//scalacOptions += "-explain",
Compile / javaOptions += "-Xmx2G", // without `Compile` it breaks sbt start/runProd (Universal scope)
pipelineStages := Seq(digest)
)
val bootstrapPlayVersion = "9.11.0"
val hmrcMongoVersion = "2.5.0"
val compile = Seq(
caffeine,
"uk.gov.hmrc" %% "bootstrap-frontend-play-30" % bootstrapPlayVersion,
"uk.gov.hmrc.mongo" %% "hmrc-mongo-play-30" % hmrcMongoVersion,
"uk.gov.hmrc" %% "internal-auth-client-play-30" % "3.0.0",
"org.typelevel" %% "cats-core" % "2.13.0",
"org.yaml" % "snakeyaml" % "2.3",
"org.planet42" %% "laika-core" % "0.19.5",
"org.jsoup" % "jsoup" % "1.17.2"
)
val test = Seq(
"uk.gov.hmrc" %% "bootstrap-test-play-30" % bootstrapPlayVersion % Test,
"uk.gov.hmrc.mongo" %% "hmrc-mongo-test-play-30" % hmrcMongoVersion % Test,
"org.scalatestplus" %% "scalacheck-1-17" % "3.2.17.0" % Test,
ws
)