-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
76 lines (64 loc) · 2.21 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
65
66
67
68
69
70
71
72
73
74
75
76
lazy val commonSettings = Seq(
organization := "org.labrad",
version := {
IO.read(file("core/src/main/resources/org/labrad/version.txt")).trim()
},
scalaVersion := "2.11.7",
javacOptions ++= Seq("-source", "1.7", "-target", "1.7"),
scalacOptions ++= Seq(
"-deprecation",
"-feature"
),
licenses += ("GPL-2.0", url("http://www.gnu.org/licenses/gpl-2.0.html")),
// dependencies
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.lihaoyi" %% "fastparse" % "0.3.5",
"org.clapper" %% "argot" % "1.0.4",
"io.netty" % "netty-all" % "4.1.1.Final",
"joda-time" % "joda-time" % "2.1",
"org.joda" % "joda-convert" % "1.2",
"org.slf4j" % "slf4j-api" % "1.7.2",
"ch.qos.logback" % "logback-classic" % "1.0.6",
"com.typesafe.play" %% "anorm" % "2.4.0-M2",
"org.xerial" % "sqlite-jdbc" % "3.8.11.2",
"org.bouncycastle" % "bcprov-jdk15on" % "1.52",
"org.bouncycastle" % "bcpkix-jdk15on" % "1.52",
"org.mindrot" % "jbcrypt" % "0.3m",
"com.google.api-client" % "google-api-client" % "1.19.0",
"com.google.http-client" % "google-http-client" % "1.19.0"
),
// When running, connect std in and tell manager to stop on EOF (ctrl+D).
// This allows us to stop the manager without using ctrl+C, which kills sbt.
run / fork := true,
run / connectInput := true,
javaOptions += "-Dorg.labrad.stopOnEOF=true",
// testing
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.6" % "test"
),
Test / fork := true,
Test / parallelExecution := false,
Test / javaOptions += "-Xmx1g",
)
lazy val all = project.in(file("."))
.aggregate(core, manager)
lazy val core = project.in(file("core"))
.settings(commonSettings)
.settings(
name := "scalabrad-core"
)
lazy val manager = project.in(file("manager"))
.dependsOn(core)
.enablePlugins(PackPlugin)
.settings(commonSettings)
.settings(
name := "scalabrad-manager",
packMain := Map(
"labrad" -> "org.labrad.manager.Manager",
"labrad-migrate-registry" -> "org.labrad.registry.Migrate",
"labrad-sql-test" -> "org.labrad.registry.SQLTest"
),
packGenerateWindowsBatFile := true,
packArchivePrefix := "scalabrad"
)