-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
33 lines (28 loc) · 1.12 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
import org.irundaia.sass.Minified
import uk.gov.hmrc.DefaultBuildSettings.itSettings
val defaultPort = 9526
val appName = "tenure-cost-and-trade-records-frontend"
ThisBuild / majorVersion := 0
ThisBuild / scalaVersion := "3.5.1"
lazy val microservice = Project(appName, file("."))
.enablePlugins(PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin)
.settings(
maintainer := "[email protected]",
libraryDependencies ++= AppDependencies.appDependencies,
PlayKeys.playDefaultPort := defaultPort,
scalacOptions += "-Wconf:src=routes/.*:s",
scalacOptions += "-Wconf:cat=unused-imports&src=html/.*:s"
)
.settings(
SassKeys.cssStyle := Minified,
SassKeys.generateSourceMaps := false,
Assets / pipelineStages := Seq(digest),
digest / includeFilter := GlobFilter("*.js") || GlobFilter("*.min.css")
)
lazy val it =
(project in file("it"))
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test")
.settings(itSettings())
addCommandAlias("precommit", "scalafmtSbt;scalafmtAll;it/Test/scalafmt;coverage;test;it/test;coverageReport")