-
Notifications
You must be signed in to change notification settings - Fork 51
/
build.sbt
55 lines (44 loc) · 1.62 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
import de.johoop.jacoco4sbt.XMLReport
name := """ground"""
lazy val commonSettings = Seq(
organization := "edu.berkeley.ground",
version := "0.1.3-SNAPSHOT",
scalaVersion := "2.11.8"
)
lazy val root = (project in file(".")).enablePlugins(PlayJava)
.settings(
commonSettings,
name := "ground"
)
.aggregate(common, postgres)
lazy val common = (project in file("modules/common"))
.enablePlugins(PlayJava, JavaAppPackaging)
.settings(
commonSettings,
name := "ground-common",
libraryDependencies += javaJdbc,
jacoco.settings,
parallelExecution in jacoco.Config := false,
Keys.fork in jacoco.Config := true,
jacoco.reportFormats in jacoco.Config := Seq(XMLReport(encoding = "utf-8"))
)
lazy val postgres = (project in file("modules/postgres"))
.enablePlugins(PlayJava, JavaAppPackaging)
.settings(
commonSettings,
name := "ground-postgres",
libraryDependencies += javaJdbc,
libraryDependencies += cache,
libraryDependencies += "org.postgresql" % "postgresql" % "42.0.0",
libraryDependencies += "commons-beanutils" % "commons-beanutils-core" % "1.8.3",
jacoco.settings,
parallelExecution in jacoco.Config := false,
Keys.fork in jacoco.Config := true,
jacoco.reportFormats in jacoco.Config := Seq(XMLReport(encoding = "utf-8")),
mappings in Universal ++=
(baseDirectory.value / "resources/scripts/postgres" * "*" get) map
(x => x -> ("postgres/scripts/" + x.getName))
).dependsOn(common)
jacoco.settings
parallelExecution in jacoco.Config := false
jacoco.reportFormats in jacoco.Config := Seq(XMLReport(encoding = "utf-8"))