-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (49 loc) · 1.9 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
name := "Odyssey"
version := "0.1"
scalaVersion := "2.12.8"
lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean).settings(
watchSources ++= (baseDirectory.value / "public/ui" ** "*").get
)
libraryDependencies += guice
libraryDependencies += jdbc
libraryDependencies += javaWs
libraryDependencies += "com.h2database" % "h2" % "1.4.197"
libraryDependencies += "org.glassfish.jaxb" % "jaxb-core" % "2.3.0.1"
libraryDependencies += "org.glassfish.jaxb" % "jaxb-runtime" % "2.3.2"
// For Cucumber
libraryDependencies += "io.cucumber" % "cucumber-core" % "4.2.0" % Test
libraryDependencies += "io.cucumber" % "cucumber-jvm" % "4.2.0" % Test
libraryDependencies += "io.cucumber" % "cucumber-junit" % "4.2.0" % Test
libraryDependencies += "io.cucumber" % "cucumber-java" % "4.2.0"
libraryDependencies += "org.xerial" % "sqlite-jdbc" % "3.25.2"
// For database
// mySQL
libraryDependencies += "mysql" % "mysql-connector-java" % "8.0.15"
libraryDependencies += "org.awaitility" % "awaitility" % "2.0.0" % Test
libraryDependencies += "org.assertj" % "assertj-core" % "3.6.2" % Test
libraryDependencies += "org.mockito" % "mockito-core" % "2.1.0" % Test
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-Werror")
javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
// Jacoco threshold values. If out report has less than set, test will fail.
jacocoReportSettings := JacocoReportSettings()
.withThresholds(
JacocoThresholds(
line = 85,
instruction = 75,
branch = 60,
method = 80,
complexity = 60,
clazz = 95)
)
// Exclude all routes and reverse routes files from testing.
jacocoExcludes in Test := Seq(
"controllers.Reverse*",
"controllers.**.Reverse*",
"controllers.javascript.*",
"controllers.**.javascript*",
"jooq.*",
"Module",
"router.*",
"*.routes*"
)