-
Notifications
You must be signed in to change notification settings - Fork 74
/
build.sbt
47 lines (41 loc) · 1.84 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
import play.sbt.PlayImport.PlayKeys.playDefaultPort
import play.sbt.routes.RoutesKeys
import uk.gov.hmrc.DefaultBuildSettings
val appName = "accessibility-statement-frontend"
lazy val sharedSettings = Seq(
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
majorVersion := 0,
scalaVersion := "3.3.4"
)
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
sharedSettings,
playDefaultPort := 12346,
Compile / unmanagedResourceDirectories += baseDirectory.value / "testOnlyConf",
TwirlKeys.templateImports ++= Seq(
"uk.gov.hmrc.accessibilitystatementfrontend.config.AppConfig",
"uk.gov.hmrc.govukfrontend.views.html.components.*",
"uk.gov.hmrc.hmrcfrontend.views.html.components.*",
"uk.gov.hmrc.hmrcfrontend.views.html.helpers.*"
),
RoutesKeys.routesImport += "uk.gov.hmrc.play.bootstrap.binders.RedirectUrl",
scalacOptions += "-Wconf:src=routes/.*:s",
scalacOptions += "-Wconf:msg=unused-imports&src=html/.*:s",
Assets / pipelineStages := Seq(gzip),
resolvers += Resolver.jcenterRepo
)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test")
.settings(DefaultBuildSettings.itSettings())
.settings(sharedSettings)
val generateReport = inputKey[Unit]("Generate a report on the accessibility statements.")
fullRunInputTask(generateReport, Compile, "uk.gov.hmrc.accessibilitystatementfrontend.tasks.StatementReportTask")
val generateMilestoneReport = inputKey[Unit]("Generate a milestone report on the accessibility statements.")
fullRunInputTask(
generateMilestoneReport,
Compile,
"uk.gov.hmrc.accessibilitystatementfrontend.tasks.MilestoneReportTask"
)