-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
62 lines (57 loc) · 2.11 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
62
import play.sbt.routes.RoutesKeys
import sbt.Def
import scoverage.ScoverageKeys
import uk.gov.hmrc.versioning.SbtGitVersioning.autoImport.majorVersion
lazy val appName: String = "digital-platform-reporting-submission-frontend"
ThisBuild / majorVersion := 0
ThisBuild / scalaVersion := "3.5.0"
lazy val microservice = (project in file("."))
.enablePlugins(PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(inConfig(Test)(testSettings)*)
.settings(ThisBuild / useSuperShell := false)
.settings(
name := appName,
RoutesKeys.routesImport ++= Seq(
"models._",
"java.time.Year",
"uk.gov.hmrc.play.bootstrap.binders.RedirectUrl"
),
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._",
"views.ViewUtils._",
"models.Mode",
"controllers.routes._",
"viewmodels.govuk.all._",
"java.time.Year"
),
PlayKeys.playDefaultPort := 20007,
ScoverageKeys.coverageExcludedFiles := "<empty>;Reverse.*;.*handlers.*;.*components.*;" +
".*Routes.*;.*viewmodels.govuk.*;",
ScoverageKeys.coverageMinimumStmtTotal := 78,
ScoverageKeys.coverageFailOnMinimum := true,
ScoverageKeys.coverageHighlighting := true,
scalacOptions ++= Seq(
"-no-indent",
"-feature",
"-Wconf:cat=deprecation:w,cat=feature:w,src=target/.*:s"
),
libraryDependencies ++= AppDependencies(),
retrieveManaged := true,
resolvers ++= Seq(Resolver.jcenterRepo),
pipelineStages := Seq(digest),
Assets / pipelineStages := Seq(concat)
)
lazy val testSettings: Seq[Def.Setting[?]] = Seq(
fork := true,
unmanagedSourceDirectories += baseDirectory.value / "test-utils"
)
lazy val it =
(project in file("it"))
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test")