-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·54 lines (50 loc) · 2.3 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
48
49
50
51
52
53
54
import sbt._
import uk.gov.hmrc.DefaultBuildSettings.{addTestReportOption, defaultSettings}
val appName = "individuals-other-income-api"
lazy val ItTest = config("it") extend Test
lazy val microservice = Project(appName, file("."))
.enablePlugins(play.sbt.PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test(),
retrieveManaged := true,
update / evictionWarningOptions := EvictionWarningOptions.default.withWarnScalaVersionEviction(warnScalaVersionEviction = false),
scalaVersion := "2.13.12",
scalacOptions ++= List(
"-language:higherKinds",
"-Xlint:-byname-implicit",
"-Xfatal-warnings",
"-Wconf:src=routes/.*:silent",
"-feature"
)
)
.settings(
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources"
)
.settings(majorVersion := 0)
.settings(CodeCoverageSettings.settings: _*)
.settings(defaultSettings(): _*)
.configs(ItTest)
.settings(inConfig(ItTest)(Defaults.itSettings): _*)
.settings(
ItTest / fork := true,
ItTest / unmanagedSourceDirectories := List((ItTest / baseDirectory).value / "it"),
ItTest / unmanagedClasspath += baseDirectory.value / "resources",
Runtime / unmanagedClasspath += baseDirectory.value / "resources",
ItTest / javaOptions += "-Dlogger.resource=logback-test.xml",
ItTest / parallelExecution := false,
addTestReportOption(ItTest, "int-test-reports")
)
.settings(
resolvers += Resolver.jcenterRepo
)
.settings(PlayKeys.playDefaultPort := 7761)
dependencyUpdatesFilter -= moduleFilter(name = "bootstrap-backend-play-30")
dependencyUpdatesFilter -= moduleFilter(organization = "org.playframework")
dependencyUpdatesFilter -= moduleFilter(name = "simple-reactivemongo")
dependencyUpdatesFilter -= moduleFilter(name = "reactivemongo-test")
dependencyUpdatesFilter -= moduleFilter(name = "scala-library")
dependencyUpdatesFilter -= moduleFilter(name = "flexmark-all")
dependencyUpdatesFilter -= moduleFilter(name = "scalatestplus-play")
dependencyUpdatesFilter -= moduleFilter(name = "scalatestplus-scalacheck")
dependencyUpdatesFailBuild := true