forked from hmrc/currency-conversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (29 loc) · 1.34 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
import TestPhases.oneForkedJvmPerTest
import uk.gov.hmrc.DefaultBuildSettings.{addTestReportOption}
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin.publishingSettings
val appName = "currency-conversion"
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtAutoBuildPlugin, SbtGitVersioning, SbtDistributablesPlugin, SbtArtifactory)
.settings(
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test(),
retrieveManaged := true,
evictionWarningOptions in update := EvictionWarningOptions.default.withWarnScalaVersionEviction(false)
)
.settings(
publishingSettings: _*
)
.settings(scalaVersion := "2.12.12")
.configs(IntegrationTest)
.settings(inConfig(IntegrationTest)(Defaults.itSettings): _*)
.settings(
Keys.fork in IntegrationTest := false,
unmanagedSourceDirectories in IntegrationTest := (baseDirectory in IntegrationTest) (base => Seq(base / "it")).value,
testGrouping in IntegrationTest := oneForkedJvmPerTest((definedTests in IntegrationTest).value),
parallelExecution in IntegrationTest := false,
addTestReportOption(IntegrationTest, "int-test-reports"),
routesImport ++= Seq("uk.gov.hmrc.currencyconversion.binders.DateBinder._", "java.time._")
)
.settings(majorVersion := 1)
.settings(
resolvers += Resolver.jcenterRepo
)