-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
116 lines (106 loc) · 2.27 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
import sbt._
import Dependencies._
import Settings._
addCommandAlias("check", "clean; scalafixAll; scalafmtAll; scapegoat; testOnly -- -l org.scalatest.tags.Slow")
lazy val root = (project in file("."))
.settings(
name := "stream-processing",
commonSettings
).aggregate(test, shared, infrastructure, wordCount, userSessions, tollDomain, tollApplication)
lazy val test = (project in file("stream-processing-test"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
scio,
scioGcp,
scioTest,
scalaLogging,
slf4j,
slf4jJcl,
logback,
scalaTest,
scalaTestPlusScalaCheck,
beamDirectRunner % Test
)
)
lazy val shared = (project in file("stream-processing-shared"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
scio,
scioGcp,
scalaLogging,
slf4j,
slf4jJcl,
logback,
beamDirectRunner % Test
)
)
.dependsOn(test % Test)
lazy val infrastructure = (project in file("stream-processing-infrastructure"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
scio,
scioGcp,
scalaLogging,
slf4j,
slf4jJcl,
logback,
beamDirectRunner % Test,
magnolifyScalaCheck % Test,
diffx % Test
)
)
.dependsOn(
shared,
test % Test
)
lazy val wordCount = (project in file("word-count"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
beamDirectRunner % Test
)
)
.dependsOn(
shared,
test % Test
)
lazy val userSessions = (project in file("user-sessions"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
beamDirectRunner % Test
)
)
.dependsOn(
shared,
test % Test
)
lazy val tollDomain = (project in file("toll-domain"))
.settings(
commonSettings,
libraryDependencies ++= Seq(
beamDirectRunner % Test
)
)
.dependsOn(
shared,
test % Test
)
lazy val tollApplication = (project in file("toll-application"))
.settings(
commonSettings,
assemblySettings,
libraryDependencies ++= Seq(
beamDirectRunner % Test,
beamDataflowRunner % Runtime
)
)
.dependsOn(
shared,
infrastructure,
test % Test,
tollDomain % "compile->compile;test->test"
)