-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
120 lines (93 loc) · 3.84 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import sbt.Compile
import sbtassembly.AssemblyPlugin.autoImport.assembly
name := "Taxi - Drive"
version := "0.1"
scalaVersion := "2.12.8"
val apacheFlinkVersion = "1.7.1"
val akkaVersion = "2.5.20"
val circeVersion = "0.10.0"
lazy val taxiProcessor = (project in file("taxi-processor"))
.settings(
libraryDependencies ++= Seq(
"org.apache.flink" %% "flink-scala" % apacheFlinkVersion % "provided",
"org.apache.flink" %% "flink-cep-scala" % apacheFlinkVersion % "provided",
"org.apache.flink" %% "flink-streaming-scala" % apacheFlinkVersion % "provided",
"org.apache.flink" %% "flink-connector-kafka" % apacheFlinkVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
),
assembly / mainClass := Some("tdrive.TaxiJob"),
Compile / run := Defaults.runTask(
Compile / fullClasspath,
Compile / run / mainClass,
Compile / run / runner
).evaluated,
Compile / run / fork := true,
Global / cancelable := true,
assembly / assemblyOption := (assembly / assemblyOption).value.copy(includeScala = false)
)
.dependsOn(sharedJVM)
lazy val taxiDataImporter = (project in file("importer"))
.settings(
libraryDependencies += "com.github.pureconfig" %% "pureconfig" % "0.10.2"
).dependsOn(sharedJVM)
lazy val kafkaIngestor = (project in file("kafka-ingestor"))
.settings(
libraryDependencies += "org.apache.kafka" %% "kafka" % "2.1.0"
).dependsOn(sharedJVM)
lazy val taxiWebServer = (project in file("web-server"))
.settings(
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-remote" % akkaVersion,
"com.typesafe.akka" %% "akka-cluster" % akkaVersion,
"com.typesafe.akka" %% "akka-cluster-tools" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % "10.1.7",
"com.typesafe.akka" %% "akka-stream-kafka" % "1.0-RC1",
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"net.debasishg" %% "redisclient" % "3.9",
"ch.qos.logback" % "logback-classic" % "1.2.3",
)
)
.dependsOn(sharedJVM)
lazy val taxiWebClient = (project in file("web-client"))
.settings(
scalaJSUseMainModuleInitializer := true,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "0.9.6",
"io.circe" %%% "circe-core" % circeVersion,
"io.circe" %%% "circe-generic" % circeVersion,
"io.circe" %%% "circe-parser" % circeVersion
),
// Dependency alone doesn't work with circe auto-generation macros
(unmanagedSourceDirectories in Compile) ++= ((unmanagedSourceDirectories in shared) in Compile).value
)
.dependsOn(shared)
.enablePlugins(ScalaJSPlugin)
val lwjglVersion = "3.2.1"
val jomlVersion = "1.9.12"
val lwjglNatives = "natives-" + {
val osName = sys.props("os.name").toLowerCase
if (osName.contains("windows")) "windows"
else if (osName.contains("linux")) "linux"
else if (osName.contains("mac")) "macos"
else "unknown"
}
lazy val taxiVisualizer = (project in file("taxi-visualizer"))
.settings(
libraryDependencies ++= Seq(
"org.lwjgl" % "lwjgl" % lwjglVersion,
"org.lwjgl" % "lwjgl-glfw" % lwjglVersion,
"org.lwjgl" % "lwjgl-opengl" % lwjglVersion,
"org.lwjgl" % "lwjgl" % lwjglVersion classifier lwjglNatives,
"org.lwjgl" % "lwjgl-glfw" % lwjglVersion classifier lwjglNatives,
"org.lwjgl" % "lwjgl-opengl" % lwjglVersion classifier lwjglNatives,
"org.joml" % "joml" % jomlVersion,
"com.github.pureconfig" %% "pureconfig" % "0.10.2",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
)
).dependsOn(sharedJVM)
lazy val sharedJVM = (project in file("sharedJVM")).dependsOn(shared)
lazy val shared = project in file("shared")