forked from hmrc/address-lookup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (45 loc) · 2.15 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
39
40
41
42
43
44
45
46
47
import uk.gov.hmrc.DefaultBuildSettings.{addTestReportOption, defaultSettings, scalaSettings, targetJvm}
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin.publishingSettings
val thisScalaVersion = "2.13.10"
lazy val root = Project("address-lookup", file("."))
.enablePlugins(play.sbt.PlayScala, SbtAutoBuildPlugin, SbtGitVersioning, SbtDistributablesPlugin)
.enablePlugins(Seq(PlayScala): _*)
.settings(majorVersion := 4)
.settings(scalaSettings: _*)
.settings(scalaVersion := thisScalaVersion)
.settings(scalacOptions ++= Seq("-Xlint:-missing-interpolator"))
.settings(publishingSettings: _*)
.settings(defaultSettings(): _*)
.settings(
targetJvm := "jvm-1.8",
libraryDependencies ++= AppDependencies(),
Test / parallelExecution := false,
Test / fork := false,
retrieveManaged := true
)
.configs(Test)
.settings(
Test / unmanagedSourceDirectories := (Test / baseDirectory) (base => Seq(base / "test" / "unit")).value,
addTestReportOption(Test, "test-reports"))
.configs(IntegrationTest)
.settings(inConfig(IntegrationTest)(Defaults.itSettings): _*)
.settings(
IntegrationTest / Keys.fork := false,
IntegrationTest / unmanagedSourceDirectories := (Test / baseDirectory)(base => Seq(base / "test" / "it")).value,
IntegrationTest / unmanagedResourceDirectories := (Test / baseDirectory) (base => Seq(base / "test" / "resources")).value,
addTestReportOption(IntegrationTest, "int-test-reports"),
IntegrationTest / parallelExecution := false)
.settings(
Compile / doc / sources := List(),
Test / doc / sources := List(),
Compile / packageDoc / publishArtifact := false,
Compile / packageSrc / publishArtifact := true,
Test / packageDoc / publishArtifact := false,
Test / packageSrc / publishArtifact := true,
Compile / packageBin / publishArtifact := true
)
.settings(resolvers ++= Seq(Resolver.jcenterRepo))
.settings(update / evictionWarningOptions :=
EvictionWarningOptions.default.withWarnTransitiveEvictions(false)
.withWarnDirectEvictions(false).withWarnScalaVersionEviction(false))
.enablePlugins(SbtDistributablesPlugin, SbtAutoBuildPlugin, SbtGitVersioning)