-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
36 lines (30 loc) · 1.32 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
import scoverage.ScoverageKeys
import uk.gov.hmrc.DefaultBuildSettings.{addTestReportOption, defaultSettings, itSettings, scalaSettings}
import uk.gov.hmrc.versioning.SbtGitVersioning.autoImport.majorVersion
val appName: String = "business-registration-notification"
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / majorVersion := 1
lazy val scoverageSettings = Seq(
ScoverageKeys.coverageExcludedPackages := "<empty>;Reverse.*;view.*;config.*;.*(AuthService|BuildInfo|Routes).*",
ScoverageKeys.coverageMinimumStmtTotal := 90,
ScoverageKeys.coverageFailOnMinimum := true,
ScoverageKeys.coverageHighlighting := true
)
lazy val microservice = Project(appName, file("."))
.enablePlugins(Seq(PlayScala, SbtDistributablesPlugin): _*)
.settings(scoverageSettings: _*)
.settings(scalaSettings: _*)
.settings(PlayKeys.playDefaultPort := 9661)
.settings(defaultSettings(): _*)
.settings(
scalacOptions += "-Xlint:-unused",
libraryDependencies ++= AppDependencies(),
retrieveManaged := true,
resolvers += Resolver.jcenterRepo
)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test") // the "test->test" allows reusing test code and test dependencies
.settings(itSettings())
.settings(libraryDependencies ++= AppDependencies(),
addTestReportOption(Test, "int-test-reports"))