-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
48 lines (46 loc) · 2.01 KB
/
build.sbt
File metadata and controls
48 lines (46 loc) · 2.01 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
36
37
38
39
40
41
42
43
44
45
46
47
48
val strictBuilding: SettingKey[Boolean] = StrictBuilding.strictBuilding //defining here so it can be set before running sbt like `sbt 'set Global / strictBuilding := true' ...`
StrictBuilding.strictBuildingSetting
val playPort: Int = 22201
PlayKeys.playRunHooks += PlayRunHook(playPort)
ThisBuild / majorVersion := 0
ThisBuild / scalaVersion := "3.6.1"
ThisBuild / scalafmtOnCompile := true
ThisBuild / semanticdbEnabled := true
ThisBuild / scalafixOnCompile := true
lazy val microservice = Project("agent-registration-frontend", file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin)
.settings(
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
pipelineStages := Seq(gzip),
Compile / doc / scalacOptions := Seq(), // this will allow to have warnings in `doc` task
Test / doc / scalacOptions := Seq(), // this will allow to have warnings in `doc` task
scalacOptions ++= ScalaCompilerFlags.scalaCompilerOptions,
scalacOptions ++= {
if (StrictBuilding.strictBuilding.value)
ScalaCompilerFlags.strictScalaCompilerOptions
else
Nil
},
pipelineStages := Seq(gzip),
Test / parallelExecution := true,
routesImport ++= Seq(
"uk.gov.hmrc.agentregistrationfrontend",
"uk.gov.hmrc.agentregistrationfrontend.model.grs",
"uk.gov.hmrc.agentregistrationfrontend.model.addresslookup",
"uk.gov.hmrc.agentregistrationfrontend.RoutesExports.*"
)
)
.settings(CodeCoverageSettings.settings)
.settings(commands ++= SbtCommands.commands)
.settings(SbtUpdatesSettings.sbtUpdatesSettings *)
.settings(WartRemoverSettings.wartRemoverSettings)
.settings(PlayKeys.playDefaultPort := playPort)
.settings(
TwirlKeys.templateImports ++= Seq(
"uk.gov.hmrc.agentregistrationfrontend.controllers.AppRoutes",
"uk.gov.hmrc.govukfrontend.views.html.components._",
"uk.gov.hmrc.govukfrontend.views.html.components._",
"uk.gov.hmrc.hmrcfrontend.views.html.components._"
)
)