-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
51 lines (45 loc) · 1.64 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
import CodeCoverageSettings.scoverageSettings
import uk.gov.hmrc.DefaultBuildSettings
val appName = "agent-client-relationships"
ThisBuild / majorVersion := 1
ThisBuild / scalaVersion := "2.13.12"
lazy val root = (project in file("."))
.disablePlugins(JUnitXmlReportPlugin)
.settings(
name := appName,
organization := "uk.gov.hmrc",
PlayKeys.playDefaultPort := 9434,
scalacOptions ++= Seq(
"-Yrangepos",
"-Xfatal-warnings",
"-Xlint:-missing-interpolator,_",
// "-Yno-adapted-args",
"-Ywarn-value-discard",
"-Ywarn-dead-code",
"-deprecation",
"-feature",
"-unchecked",
"-language:implicitConversions",
"-Wconf:src=target/.*:s", // silence warnings from compiled files
"-Wconf:src=Routes/.*:s" // silence warnings from routes files
),
resolvers ++= Seq(
Resolver.typesafeRepo("releases"),
),
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
scoverageSettings,
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
routesImport ++= Seq("uk.gov.hmrc.agentclientrelationships.binders.PathBinders._"),
Compile / scalafmtOnCompile := true,
Test / scalafmtOnCompile := true
)
.enablePlugins(PlayScala, SbtDistributablesPlugin)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(root % "compile->compile;test->test") // the "test->test" allows reusing test code and test dependencies
.settings(DefaultBuildSettings.itSettings())
.settings(libraryDependencies ++= AppDependencies.test)
.settings(
Compile / scalafmtOnCompile := true,
Test / scalafmtOnCompile := true
)