-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
67 lines (62 loc) · 2.12 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
inThisBuild(
Seq(
organization := "com.whatismyeyecolor",
scalaVersion := "2.12.4",
scalacOptions ++= Seq("-deprecation", "-feature", "-language:_"),
javaOptions ++= Seq("-Djava.library.path=" + sys.env("OPENCV_JAVA_PATH")),
fork := true
)
)
lazy val root = (project in file("."))
.settings(
onLoad in Global := {
sys.env.get("OPENCV_JAVA_PATH") match {
case Some(_) => (onLoad in Global).value
case None => sys.error("Please set environment variable OPENCV_JAVA_PATH before continuing")
}
}
)
.aggregate(library, cli, gui, training)
val library = (project in file("library"))
.settings(
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.slf4j" % "slf4j-api" % "1.7.25",
"ch.qos.logback" % "logback-classic" % "1.2.3" % Test,
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
)
val cli = (project in file("cli"))
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.rogach" %% "scallop" % "3.1.1",
"org.scalatest" %% "scalatest" % "3.0.4" % Test
),
unmanagedBase := (unmanagedBase in library).value,
mainClass in (Compile, run) := Some("com.whatismyeyecolor.cli.Client")
)
.dependsOn(library)
val gui = (project in file("gui"))
.settings(
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.rogach" %% "scallop" % "3.1.1",
"com.twitter" %% "finagle-http" % "17.12.0",
"com.lihaoyi" %% "scalatags" % "0.6.7",
"org.scalatest" %% "scalatest" % "3.0.4" % Test
),
unmanagedBase := (unmanagedBase in library).value,
mainClass in (Compile, run) := Some("com.whatismyeyecolor.gui.Server")
)
.dependsOn(library)
val training = (project in file("training"))
.settings(
libraryDependencies ++= Seq(
"org.rogach" %% "scallop" % "3.1.1",
"ch.qos.logback" % "logback-classic" % "1.2.3"
),
unmanagedBase := (unmanagedBase in library).value,
mainClass in (Compile, run) := Some("com.whatismyeyecolor.training.Client")
)
.dependsOn(library)