-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
42 lines (33 loc) · 1.34 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
name := """flux-server"""
organization := "ch.hsr.flux"
version := "1.0"
lazy val root = (project in file(".")).enablePlugins(PlayJava, LauncherJarPlugin)
scalaVersion := "2.12.6"
val guiceVersion = "4.2.0"
val guiceDeps = Seq(
"com.google.inject" % "guice" % guiceVersion,
"com.google.inject.extensions" % "guice-assistedinject" % guiceVersion
)
val java9 = Seq(
"javax.xml.bind" % "jaxb-api" % "2.3.0",
"org.glassfish.jaxb" % "jaxb-runtime" % "2.3.0"
)
libraryDependencies ++= Seq(
guice,
javaJpa,
"org.postgresql" % "postgresql" % "42.2.2",
"com.h2database" % "h2" % "1.4.192",
"org.hibernate" % "hibernate-entitymanager" % "5.2.17.Final",
"com.fasterxml.jackson.datatype" % "jackson-datatype-hibernate5" % "2.9.5",
"org.mindrot" % "jbcrypt" % "0.4"
) ++ guiceDeps ++ java9
PlayKeys.externalizeResources := false
jacocoReportSettings := JacocoReportSettings()
.withTitle("Flux Server JACOCO Report")
.withFormats(JacocoReportFormats.ScalaHTML)
jacocoExcludes := Seq("views*", "*Routes*", "controllers*routes*", "controllers*Reverse*", "controllers*javascript*", "controller*ref*")
jacocoDirectory := baseDirectory.value /"target/jacoco"
javaOptions in Test += "-Dconfig.file=conf/test.conf"
// Dont need the documentations built with the dist task
sources in (Compile, doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false