-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
executable file
·35 lines (32 loc) · 1.56 KB
/
build.sbt
File metadata and controls
executable file
·35 lines (32 loc) · 1.56 KB
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
import uk.gov.hmrc.DefaultBuildSettings
ThisBuild / majorVersion := 0
ThisBuild / scalaVersion := "3.3.6"
lazy val microservice = Project("user-allow-list-admin-frontend", file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
PlayKeys.playDefaultPort := 11307,
TwirlKeys.templateImports ++= Seq(
"play.twirl.api.HtmlFormat",
"play.twirl.api.HtmlFormat._",
"uk.gov.hmrc.govukfrontend.views.html.components._",
"uk.gov.hmrc.hmrcfrontend.views.html.components._",
"uk.gov.hmrc.hmrcfrontend.views.html.helpers._",
"uk.gov.hmrc.hmrcfrontend.views.config._",
"controllers.routes._",
"uk.gov.hmrc.govukfrontend.views.html.components.implicits._",
"uk.gov.hmrc.hmrcfrontend.views.html.components.implicits._"
),
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
// https://www.scala-lang.org/2021/01/12/configuring-and-suppressing-warnings.html
// suppress warnings in generated routes files
scalacOptions += "-Wconf:src=routes/.*:s",
scalacOptions += "-Wconf:cat=unused-imports&src=html/.*:s",
pipelineStages := Seq(gzip),
)
.settings(CodeCoverageSettings.settings)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test") // the "test->test" allows reusing test code and test dependencies
.settings(DefaultBuildSettings.itSettings())
.settings(libraryDependencies ++= AppDependencies.itDependencies)