-
Notifications
You must be signed in to change notification settings - Fork 211
/
build.sbt
38 lines (30 loc) · 1.29 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
import uk.gov.hmrc.DefaultBuildSettings._
import uk.gov.hmrc.versioning.SbtGitVersioning.autoImport.majorVersion
val appName = "hmrc-email-renderer"
ThisBuild / majorVersion := 3
ThisBuild / scalaVersion := "3.4.2"
val appDependencies: Seq[ModuleID] = AppDependencies()
lazy val playSettings: Seq[Setting[_]] = Seq.empty
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(playSettings: _*)
.settings(scalaSettings: _*)
.settings(defaultSettings(): _*)
.settings(
libraryDependencies ++= appDependencies,
retrieveManaged := true
)
.settings(resolvers += Resolver.jcenterRepo)
.settings(routesGenerator := InjectedRoutesGenerator)
.settings(ScoverageSettings())
lazy val it = Project(id = "it", base = file("it"))
.enablePlugins(PlayScala, ScalafmtPlugin)
.dependsOn(microservice % "test->test") // the "test->test" allows reusing test code and test dependencies
.settings(libraryDependencies ++= appDependencies ++ AppDependencies.it)
Test / test := (Test / test)
.dependsOn(scalafmtCheckAll)
.value
it / test := (it / Test / test)
.dependsOn(scalafmtCheckAll, it/scalafmtCheckAll)
.value