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