-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.sbt
220 lines (183 loc) · 6.26 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
lazy val root = project
.in(file("."))
.aggregate(
common,
conductRBundleLib,
javaCommon,
javaConductRBundleLib,
javaTestLib,
scalaCommon,
scalaConductRBundleLib,
scalaConductRClientLib,
akka24Common,
akka24ConductRBundleLib,
akka24ConductRClientLib,
akka24TestLib,
akka25Common,
akka25ConductRBundleLib,
akka25ConductRClientLib,
akka25TestLib,
play25Common,
play25ConductRBundleLib,
play25ConductRClientLib,
play26Common,
play26ConductRBundleLib,
play26ConductRClientLib,
lagom13JavaConductRBundleLib,
lagom13ScalaConductRBundleLib,
lagom14JavaConductRBundleLib,
lagom14ScalaConductRBundleLib)
.enablePlugins(CrossPerProjectPlugin)
// When executing tests the projects are running sequentially.
// If the tests of each project run sequentially or in parallel
// is defined in the `build.sbt` of the individual project itself
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
// Base
lazy val common = project
.in(file("common"))
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val conductRBundleLib = project
.in(file("conductr-bundle-lib"))
.dependsOn(common)
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Java
lazy val javaCommon = project
.in(file("java-common"))
.dependsOn(common)
.enablePlugins(CrossPerProjectPlugin)
lazy val javaConductRBundleLib = project
.in(file("java-conductr-bundle-lib"))
.dependsOn(conductRBundleLib)
.dependsOn(javaCommon)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Scala
lazy val scalaCommon = project
.in(file("scala-common"))
.dependsOn(common)
.enablePlugins(CrossPerProjectPlugin)
lazy val scalaConductRBundleLib = project
.in(file("scala-conductr-bundle-lib"))
.dependsOn(conductRBundleLib)
.dependsOn(scalaCommon)
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val scalaConductRClientLib = project
.in(file("scala-conductr-client-lib"))
.dependsOn(scalaCommon)
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Akka 2.4
lazy val akka24Common = project
.in(file("akka24-common"))
.dependsOn(scalaCommon)
.enablePlugins(CrossPerProjectPlugin)
lazy val akka24ConductRBundleLib = project
.in(file("akka24-conductr-bundle-lib"))
.dependsOn(scalaConductRBundleLib)
.dependsOn(akka24Common)
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val akka24ConductRClientLib = project
.in(file("akka24-conductr-client-lib"))
.dependsOn(scalaConductRClientLib)
.dependsOn(akka24Common)
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Akka 2.4
lazy val akka25Common = project
.in(file("akka25-common"))
.dependsOn(scalaCommon)
.enablePlugins(CrossPerProjectPlugin)
lazy val akka25ConductRBundleLib = project
.in(file("akka25-conductr-bundle-lib"))
.dependsOn(scalaConductRBundleLib)
.dependsOn(akka25Common)
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val akka25ConductRClientLib = project
.in(file("akka25-conductr-client-lib"))
.dependsOn(scalaConductRClientLib)
.dependsOn(akka25Common)
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Play 2.5
lazy val play25Common = project
.in(file("play25-common"))
.dependsOn(javaCommon)
.dependsOn(scalaCommon)
.enablePlugins(CrossPerProjectPlugin)
lazy val play25ConductRBundleLib = project
.in(file("play25-conductr-bundle-lib"))
.dependsOn(akka24ConductRBundleLib)
.dependsOn(play25Common)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val play25ConductRClientLib = project
.in(file("play25-conductr-client-lib"))
.dependsOn(scalaConductRClientLib)
.dependsOn(play25Common)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Play 2.6
lazy val play26Common = project
.in(file("play26-common"))
.dependsOn(javaCommon)
.dependsOn(scalaCommon)
.enablePlugins(CrossPerProjectPlugin)
lazy val play26ConductRBundleLib = project
.in(file("play26-conductr-bundle-lib"))
.dependsOn(akka25ConductRBundleLib)
.dependsOn(play26Common)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val play26ConductRClientLib = project
.in(file("play26-conductr-client-lib"))
.dependsOn(scalaConductRClientLib)
.dependsOn(play26Common)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Lagom version 1.3
lazy val lagom13JavaConductRBundleLib = project
.in(file("lagom13-java-conductr-bundle-lib"))
.dependsOn(play25ConductRBundleLib)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val lagom13ScalaConductRBundleLib = project
.in(file("lagom13-scala-conductr-bundle-lib"))
.dependsOn(play25ConductRBundleLib)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka24TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Lagom version 1.4
lazy val lagom14JavaConductRBundleLib = project
.in(file("lagom14-java-conductr-bundle-lib"))
.dependsOn(play26ConductRBundleLib)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
lazy val lagom14ScalaConductRBundleLib = project
.in(file("lagom14-scala-conductr-bundle-lib"))
.dependsOn(play26ConductRBundleLib)
.dependsOn(javaTestLib % "test->compile")
.dependsOn(akka25TestLib % "test->compile")
.enablePlugins(CrossPerProjectPlugin)
// Test libraries
lazy val akka24TestLib = project
.in(file("akka24-test-lib"))
.enablePlugins(CrossPerProjectPlugin)
lazy val akka25TestLib = project
.in(file("akka25-test-lib"))
.enablePlugins(CrossPerProjectPlugin)
lazy val javaTestLib = project
.in(file("java-test-lib"))
.enablePlugins(CrossPerProjectPlugin)
name := "conductr-lib"