-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.sbt
34 lines (29 loc) · 1.12 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
import play.sbt.PlayImport.PlayKeys.playDefaultPort
import sbt.Keys.scalacOptions
import uk.gov.hmrc.DefaultBuildSettings
import scala.collection.Seq
val appName = "openid-connect-userinfo"
ThisBuild / majorVersion := 1
ThisBuild / scalaVersion := "3.5.1"
lazy val microservice = Project(appName, file("."))
.enablePlugins(PlayScala, SbtDistributablesPlugin)
.settings(DefaultBuildSettings.defaultSettings() *)
.disablePlugins(JUnitXmlReportPlugin) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
playDefaultPort := 9836,
libraryDependencies ++= AppDependencies(),
scalacOptions ++= Seq(
"-Werror",
"-feature",
"-Wconf:src=views/.*&msg=unused import:silent",
"-Wconf:src=routes/.*:silent",
"-Wconf:msg=set repeatedly:silent"
)
)
.settings(ScoverageSettings())
.settings(scalafmtOnCompile := true)
lazy val it = project
.enablePlugins(PlayScala)
.dependsOn(microservice % "test->test") // the "test->test" allows reusing test code and test dependencies
.settings(DefaultBuildSettings.itSettings())
.settings(scalafmtOnCompile := true)