-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sbt
30 lines (28 loc) · 1.07 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
val appName = "bootstrap-play-26"
val silencerVersion = "1.7.2"
lazy val library = Project(appName, file("."))
.enablePlugins(SbtAutoBuildPlugin, SbtGitVersioning, SbtArtifactory)
.disablePlugins(JUnitXmlReportPlugin) //Required to prevent https://github.com/scalatest/scalatest/issues/1427
.settings(
majorVersion := 4,
makePublicallyAvailableOnBintray := true
)
.settings(
scalaVersion := "2.12.13",
libraryDependencies ++= AppDependencies.compile ++ AppDependencies.test,
fork in Test := true,
scalacOptions ++= Seq("-deprecation"),
libraryDependencies ++= Seq(
compilerPlugin("com.github.ghik" % "silencer-plugin" % silencerVersion cross CrossVersion.full),
"com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full
)
)
.settings(
publishArtifact in Test := true,
mappings in (Test, packageBin) ~= { ms: Seq[(File, String)] =>
ms filter {
case (_, toPath) =>
toPath startsWith "uk.gov.hmrc.play.bootstrap.tools".replace(".", java.io.File.separator)
}
}
)