-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
63 lines (51 loc) · 2.06 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
val commonSettings: Seq[Setting[_]] = Seq(
organization := "com.jsuereth",
version := "0.1",
scalaVersion := "2.11.7",
connectInput in run := true
)
lazy val ansi =
project.settings(commonSettings:_*)
lazy val ansimarkdown =
project.settings(commonSettings:_*).dependsOn(ansi).settings(
libraryDependencies ++= Seq(Deps.pegdown)
)
lazy val ansiui =
project.settings(commonSettings:_*).dependsOn(ansi).settings(libraryDependencies ++= Seq(Deps.reactiveCollections))
lazy val image =
project.settings(commonSettings:_*).dependsOn(ansi)
lazy val video =
project.settings(commonSettings:_*).dependsOn(image, ansi).settings(libraryDependencies += Deps.akkaStreams)
lazy val ffmpeg =
project.settings(commonSettings:_*).settings(
libraryDependencies ++= Seq(Deps.akkaStreams, Deps.xuggler),
resolvers += "xuggler-repo" at "http://www.dcm4che.org/maven2"
).dependsOn(video)
lazy val webcam =
project.settings(commonSettings:_*).settings(
libraryDependencies ++= Seq(Deps.akkaStreams, Deps.webcam)
).dependsOn(video)
lazy val examples =
project.settings(commonSettings:_*).dependsOn(image, ffmpeg, webcam).settings(
fork in (Compile, run) := true,
assemblyMergeStrategy in assembly := {
case PathList("org", "xmlpull", xs @ _*) => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
},
mainClass in assembly := Some("examples.AsciiVideo"),
assemblyJarName in assembly := "console-roll.jar",
libraryDependencies ++= Seq(Deps.akkaHttp, Deps.kafka, Deps.ficus, Deps.logging)
)
lazy val slideui =
project.settings(commonSettings:_*).dependsOn(ansiui, image, webcam, ansimarkdown, ffmpeg).settings(
mainClass in assembly := Some("com.jsuereth.ansi.ui.TestUI"),
libraryDependencies += Deps.scalaCompiler.value,
assemblyMergeStrategy in assembly := {
case PathList("org", "xmlpull", xs @ _*) => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
)