-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
64 lines (48 loc) · 1.49 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name := "food-hygiene"
version := "1.0"
scalaVersion := "2.12.10"
val http4sVersion = "0.17.6"
val circeVersion = "0.8.0"
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.http4s" %% "http4s-blaze-client" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.http4s" %% "http4s-twirl" % http4sVersion,
// Circe for handling JSON
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-literal" % circeVersion,
"io.circe" %% "circe-optics" % circeVersion,
"ch.qos.logback" % "logback-classic" % "1.2.1",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
// Test
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.mockito" % "mockito-core" % "2.7.21" % "test",
"com.github.tomakehurst" % "wiremock" % "2.12.0" % "test"
)
// Packaging
enablePlugins(JavaAppPackaging)
// HTML Templates
enablePlugins(SbtTwirl)
// Code coverage alias
addCommandAlias("validate", ";coverage;test;coverageReport")
coverageMinimum := 75
coverageFailOnMinimum := true
val compilerOptions = Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:_",
"-unchecked",
"-Xfatal-warnings",
"-Xfuture",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-unused"
)
val additionalOptions = Seq(
"-Ywarn-dead-code",
"-Ywarn-value-discard"
)
scalacOptions in(Compile, doc) ++= compilerOptions ++ additionalOptions
scalacOptions in Test ++= compilerOptions