-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
27 lines (25 loc) · 981 Bytes
/
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
val scalafixSettings = Seq(
semanticdbEnabled := true, // enable SemanticDB
semanticdbVersion := scalafixSemanticdb.revision // "4.4.0"
)
lazy val testSuite = (project in file("."))
.disablePlugins(
JUnitXmlReportPlugin
) // Required to prevent https://github.com/scalatest/scalatest/issues/1427
.enablePlugins(ScalafixPlugin)
.settings(
name := "pillar2-api-tests",
version := "0.1.0",
scalaVersion := "2.13.12",
scalacOptions ++= Seq("-feature"),
libraryDependencies ++= Dependencies.test,
// The testOptions from SbtAutoBuildPlugin supports only ScalaTest. Resetting testOptions for Cucumber Tests.
Test / testOptions := Seq.empty,
resolvers += MavenRepository("HMRC-open-artefacts-maven2", "https://open.artefacts.tax.service.gov.uk/maven2"),
scalafixSettings
)
addCommandAlias(
"prePrChecks",
";scalafmtCheckAll;scalafmtSbtCheck;scalafixAll --check"
)
addCommandAlias("lint", ";scalafmtAll;scalafmtSbt;scalafixAll")