-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
38 lines (34 loc) · 1.21 KB
/
build.sbt
File metadata and controls
38 lines (34 loc) · 1.21 KB
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 uk.gov.hmrc.DefaultBuildSettings
ThisBuild / scalaVersion := "3.5.2"
ThisBuild / majorVersion := 1
ThisBuild / scalacOptions ++= Seq(
"-Werror",
"-Wconf:msg=Flag.*repeatedly:s"
)
ThisBuild / scalafmtOnCompile := true
val appName = "individuals-charges-api"
lazy val microservice = Project(appName, file("."))
.enablePlugins(PlayScala, SbtDistributablesPlugin)
.disablePlugins(JUnitXmlReportPlugin) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
scalacOptions ++= List(
"-Wconf:src=routes/.*:s",
"-feature"
)
)
.settings(
Compile / unmanagedResourceDirectories += baseDirectory.value / "resources",
Compile / unmanagedClasspath += baseDirectory.value / "resources"
)
.settings(CodeCoverageSettings.settings *)
.settings(PlayKeys.playDefaultPort := 9765)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test")
.settings(DefaultBuildSettings.itSettings())
.settings(
Test / fork := true,
Test / javaOptions += "-Dlogger.resource=logback-test.xml",
)
.settings(libraryDependencies ++= AppDependencies.itDependencies)