This repository has been archived by the owner on Aug 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
67 lines (61 loc) · 2.8 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
lazy val analytics = ( project in file(".") )
.aggregate(common, aggregatedProfit, cumulativeProfit, cumulativeMarketShare, holdingCost)
val versions = new {
def flink = "1.6.0"
def json = "3.5.0"
}
lazy val common = (project in file("common")).settings(
name := "common",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-native" % versions.json,
"org.json4s" %% "json4s-jackson" % versions.json,
"com.typesafe" % "config" % "1.3.1",
"org.json4s" %% "json4s-ext" % versions.json,
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided")
)
lazy val cumulativeProfit = (project in file("cumulativeProfit")).settings(
name := "cumulativeProfit",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.apache.flink" %% "flink-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-connector-kafka-0.9" % versions.flink
),
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
assemblyOutputPath in assembly := file(s"./target/jars/${name.value}.jar")
).dependsOn(common)
lazy val cumulativeMarketShare = (project in file("cumulativeMarketShare")).settings(
name := "cumulativeMarketShare",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.apache.flink" %% "flink-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-connector-kafka-0.9" % versions.flink
),
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
assemblyOutputPath in assembly := file(s"./target/jars/${name.value}.jar")
).dependsOn(common)
lazy val aggregatedProfit = (project in file("aggregatedProfit")).settings(
name := "aggregatedProfit",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.apache.flink" %% "flink-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-connector-kafka-0.9" % versions.flink),
assemblyOutputPath in assembly := file(s"./target/jars/${name.value}.jar")
).dependsOn(common)
lazy val holdingCost = (project in file("holdingCost")).settings(
name := "holdingCost",
version := "1.0",
scalaVersion := "2.11.8",
libraryDependencies ++= Seq(
"org.apache.flink" %% "flink-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-streaming-scala" % versions.flink % "provided",
"org.apache.flink" %% "flink-connector-kafka-0.9" % versions.flink),
assemblyOutputPath in assembly := file(s"./target/jars/${name.value}.jar")
).dependsOn(common)