forked from broadinstitute/cromwell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
425 lines (362 loc) · 14.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
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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
import Dependencies._
import Settings._
// Libraries
lazy val common = project
.withLibrarySettings("cromwell-common", commonDependencies)
lazy val wom = project
.withLibrarySettings("cromwell-wom", womDependencies)
.dependsOn(common)
lazy val wdlRoot = Path("wdl")
lazy val wdlModelRoot = wdlRoot / "model"
lazy val wdlSharedModel = (project in wdlModelRoot / "shared")
.withLibrarySettings("cromwell-wdl-model-core", wdlDependencies)
.dependsOn(wom)
lazy val wdlModelDraft2 = (project in wdlModelRoot / "draft2")
.withLibrarySettings("cromwell-wdl-model-draft2", wdlDependencies)
.dependsOn(wdlSharedTransforms)
.dependsOn(wdlSharedModel)
.dependsOn(wom % "test->test")
lazy val wdlModelDraft3 = (project in wdlModelRoot / "draft3")
.withLibrarySettings("cromwell-wdl-model-draft3")
.dependsOn(wdlSharedModel)
lazy val wdlModelBiscayne = (project in wdlModelRoot / "biscayne")
.withLibrarySettings("cromwell-wdl-model-biscayne")
.dependsOn(wdlModelDraft3)
lazy val wdlTransformsRoot = wdlRoot / "transforms"
lazy val wdlSharedTransforms = (project in wdlTransformsRoot / "shared")
.withLibrarySettings("cromwell-wdl-transforms-shared", wdlDependencies)
.dependsOn(wdlSharedModel)
.dependsOn(wom)
lazy val wdlTransformsDraft2 = (project in wdlTransformsRoot / "draft2")
.withLibrarySettings("cromwell-wdl-transforms-draft2", wdlDependencies)
.dependsOn(wdlSharedTransforms)
.dependsOn(wdlModelDraft2)
.dependsOn(core % "test->test")
lazy val wdlNewBaseTransforms = (project in wdlTransformsRoot / "new-base")
.withLibrarySettings("cromwell-wdl-transforms-new-base", wdlDependencies)
.dependsOn(wdlSharedTransforms)
.dependsOn(wdlModelDraft3)
.dependsOn(languageFactoryCore)
.dependsOn(wom)
lazy val wdlTransformsDraft3 = (project in wdlTransformsRoot / "draft3")
.withLibrarySettings("cromwell-wdl-transforms-draft3", wdlDependencies)
.dependsOn(wdlNewBaseTransforms)
.dependsOn(languageFactoryCore)
.dependsOn(common % "test->test")
.dependsOn(wom % "test->test")
lazy val wdlTransformsBiscayne = (project in wdlTransformsRoot / "biscayne")
.withLibrarySettings("cromwell-wdl-transforms-biscayne", wdlDependencies)
.dependsOn(wdlNewBaseTransforms)
.dependsOn(languageFactoryCore)
.dependsOn(common % "test->test")
.dependsOn(wom % "test->test")
lazy val cwl = project
.withLibrarySettings("cromwell-cwl", cwlDependencies)
.dependsOn(wom)
.dependsOn(wom % "test->test")
lazy val cwlEncoder = project
.withLibrarySettings("cromwell-cwl-encoder")
.dependsOn(cwl)
lazy val core = project
.withLibrarySettings("cromwell-core", coreDependencies)
.dependsOn(wom)
.dependsOn(wom % "test->test")
lazy val cloudSupport = project
.withLibrarySettings("cromwell-cloud-support", cloudSupportDependencies)
.dependsOn(common)
lazy val awsS3FileSystem = (project in file("filesystems/s3"))
.withLibrarySettings("cromwell-aws-s3filesystem")
.dependsOn(core)
.dependsOn(cloudSupport)
.dependsOn(core % "test->test")
.dependsOn(cloudSupport % "test->test")
lazy val httpFileSystem = (project in file("filesystems/http"))
.withLibrarySettings("cromwell-httpFileSystem", httpFileSystemDependencies)
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val gcsFileSystem = (project in file("filesystems/gcs"))
.withLibrarySettings("cromwell-gcsfilesystem", gcsFileSystemDependencies)
.dependsOn(core)
.dependsOn(cloudSupport)
.dependsOn(core % "test->test")
.dependsOn(cloudSupport % "test->test")
lazy val ossFileSystem = (project in file("filesystems/oss"))
.withLibrarySettings("cromwell-ossFileSystem", ossFileSystemDependencies)
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val sraFileSystem = (project in file("filesystems/sra"))
.withLibrarySettings("cromwell-srafilesystem")
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val ftpFileSystem = (project in file("filesystems/ftp"))
.withLibrarySettings("cromwell-ftpFileSystem")
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(`cloud-nio-impl-ftp`)
lazy val drsFileSystem = (project in file("filesystems/drs"))
.withLibrarySettings("cromwell-drsFileSystem")
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(`cloud-nio-impl-drs`)
.dependsOn(cloudSupport)
lazy val databaseSql = (project in file("database/sql"))
.withLibrarySettings("cromwell-database-sql", databaseSqlDependencies)
lazy val databaseMigration = (project in file("database/migration"))
.withLibrarySettings("cromwell-database-migration", databaseMigrationDependencies)
.dependsOn(core)
.dependsOn(wdlModelDraft2)
.dependsOn(wdlTransformsDraft2)
lazy val dockerHashing = project
.withLibrarySettings("cromwell-docker-hashing", dockerHashingDependencies)
.dependsOn(core)
.dependsOn(core % "test->test")
lazy val cromwellApiClient = project
.withLibrarySettings("cromwell-api-client", cromwellApiClientDependencies)
lazy val centaur = project
.withLibrarySettings("centaur", centaurDependencies, integrationTests = true)
.dependsOn(cloudSupport)
.dependsOn(cromwellApiClient)
.dependsOn(databaseSql)
.dependsOn(wdlModelDraft2)
.dependsOn(wdlTransformsDraft2)
.dependsOn(wdlTransformsDraft3)
.dependsOn(womtool)
lazy val services = project
.withLibrarySettings("cromwell-services")
.dependsOn(databaseSql)
.dependsOn(databaseMigration)
.dependsOn(cloudSupport)
.dependsOn(dockerHashing)
.dependsOn(languageFactoryCore)
.dependsOn(wdlDraft2LanguageFactory % "test->test") // because the WaaS tests init language config with all languages
.dependsOn(wdlDraft3LanguageFactory % "test->test")
.dependsOn(wdlBiscayneLanguageFactory % "test->test")
.dependsOn(cwlV1_0LanguageFactory % "test->test")
.dependsOn(core % "test->test")
lazy val backendRoot = Path("supportedBackends")
lazy val backend = project
.withLibrarySettings("cromwell-backend", backendDependencies, backendSettings)
.dependsOn(services)
.dependsOn(core % "test->test")
lazy val googlePipelinesCommon = (project in backendRoot / "google" / "pipelines" / "common")
.withLibrarySettings("cromwell-pipelines-common")
.dependsOn(backend)
.dependsOn(gcsFileSystem)
.dependsOn(drsFileSystem)
.dependsOn(sraFileSystem)
.dependsOn(httpFileSystem)
.dependsOn(backend % "test->test")
.dependsOn(gcsFileSystem % "test->test")
.dependsOn(services % "test->test")
lazy val googlePipelinesV1Alpha2 = (project in backendRoot / "google" / "pipelines" / "v1alpha2")
.withLibrarySettings("cromwell-pipelines-v1-backend")
.dependsOn(googlePipelinesCommon)
.dependsOn(googlePipelinesCommon % "test->test")
.dependsOn(core % "test->test")
lazy val googlePipelinesV2Alpha1 = (project in backendRoot / "google" / "pipelines" / "v2alpha1")
.withLibrarySettings("cromwell-pipelines-v2-backend")
.dependsOn(googlePipelinesCommon)
.dependsOn(googlePipelinesCommon % "test->test")
.dependsOn(core % "test->test")
// Legacy, inherits all its code from googlePipelinesV1Alpha2
lazy val jesBackend = (project in backendRoot / "jes")
.withLibrarySettings("cromwell-jes-backend")
.dependsOn(googlePipelinesV1Alpha2)
lazy val awsBackend = (project in backendRoot / "aws")
.withLibrarySettings("cromwell-aws-backend")
.dependsOn(backend)
.dependsOn(awsS3FileSystem)
.dependsOn(backend % "test->test")
.dependsOn(awsS3FileSystem % "test->test")
.dependsOn(services % "test->test")
lazy val sfsBackend = (project in backendRoot / "sfs")
.withLibrarySettings("cromwell-sfs-backend")
.dependsOn(backend)
.dependsOn(gcsFileSystem)
.dependsOn(httpFileSystem)
.dependsOn(backend % "test->test")
.dependsOn(services % "test->test")
lazy val tesBackend = (project in backendRoot / "tes")
.withLibrarySettings("cromwell-tes-backend", tesBackendDependencies)
.dependsOn(sfsBackend)
.dependsOn(ftpFileSystem)
.dependsOn(backend % "test->test")
lazy val sparkBackend = (project in backendRoot / "spark")
.withLibrarySettings("cromwell-spark-backend", sparkBackendDependencies)
.dependsOn(sfsBackend)
.dependsOn(backend % "test->test")
lazy val bcsBackend = (project in backendRoot / "bcs")
.withLibrarySettings("cromwell-bcs-backend", bcsBackendDependencies)
.dependsOn(backend)
.dependsOn(ossFileSystem)
.dependsOn(gcsFileSystem)
.dependsOn(core % "test->test")
.dependsOn(backend % "test->test")
.dependsOn(ossFileSystem % "test->test")
.dependsOn(services % "test->test")
lazy val engine = project
.withLibrarySettings("cromwell-engine", engineDependencies, engineSettings)
.dependsOn(backend)
.dependsOn(ossFileSystem)
.dependsOn(gcsFileSystem)
.dependsOn(drsFileSystem)
.dependsOn(sraFileSystem)
.dependsOn(awsS3FileSystem)
.dependsOn(awsS3FileSystem % "test->test")
.dependsOn(drsFileSystem % "test->test")
.dependsOn(httpFileSystem % "test->test")
.dependsOn(ftpFileSystem % "test->test")
.dependsOn(`cloud-nio-spi`)
.dependsOn(languageFactoryCore)
.dependsOn(cwlV1_0LanguageFactory % "test->test")
.dependsOn(wdlDraft2LanguageFactory % "test->test")
.dependsOn(wdlDraft3LanguageFactory % "test->test")
.dependsOn(wdlBiscayneLanguageFactory % "test->test")
.dependsOn(common % "test->test")
.dependsOn(core % "test->test")
.dependsOn(backend % "test->test")
.dependsOn(services % "test->test")
// In the future we may have a dedicated test backend like the `TestLocalAsyncJobExecutionActor`.
// For now, all the engine tests run on the "Local" backend, an implementation of an impl.sfs.config backend.
.dependsOn(sfsBackend % "test->compile")
.dependsOn(gcsFileSystem % "test->test")
.dependsOn(ossFileSystem % "test->test")
// Executables
lazy val centaurCwlRunner = project
.withExecutableSettings("centaur-cwl-runner", centaurCwlRunnerDependencies, buildDocker = false)
.dependsOn(cwl)
.dependsOn(centaur)
.dependsOn(gcsFileSystem)
.dependsOn(ftpFileSystem)
lazy val womtool = project
.withExecutableSettings("womtool", womtoolDependencies)
.dependsOn(wdlDraft2LanguageFactory)
.dependsOn(wdlDraft3LanguageFactory)
.dependsOn(wdlBiscayneLanguageFactory)
.dependsOn(cwlV1_0LanguageFactory)
.dependsOn(wom % "test->test")
lazy val cromiam = (project in file("CromIAM")) // TODO: git mv CromIAM to a canonical lowercased name
.withExecutableSettings("cromiam", cromiamDependencies, cromiamSettings)
.dependsOn(common)
.dependsOn(cromwellApiClient)
.dependsOn(services)
lazy val wes2cromwell = project
.withExecutableSettings("wes2cromwell", wes2cromwellDependencies, buildDocker = false)
.dependsOn(common)
.dependsOn(cromiam)
lazy val languageFactoryRoot = Path("languageFactories")
lazy val cloudNio = Path("cloud-nio")
lazy val languageFactoryCore = (project in languageFactoryRoot / "language-factory-core")
.withLibrarySettings("language-factory-core", languageFactoryDependencies)
.dependsOn(core)
.dependsOn(common % "test->test")
lazy val wdlDraft2LanguageFactory = (project in languageFactoryRoot / "wdl-draft2")
.withLibrarySettings("wdl-draft2", draft2LanguageFactoryDependencies)
.dependsOn(languageFactoryCore)
.dependsOn(common % "test->test")
.dependsOn(wdlModelDraft2)
.dependsOn(wdlTransformsDraft2)
lazy val wdlDraft3LanguageFactory = (project in languageFactoryRoot / "wdl-draft3")
.withLibrarySettings("wdl-draft3")
.dependsOn(languageFactoryCore)
.dependsOn(wdlModelDraft3)
.dependsOn(wdlTransformsDraft3)
lazy val wdlBiscayneLanguageFactory = (project in languageFactoryRoot / "wdl-biscayne")
.withLibrarySettings("wdl-biscayne")
.dependsOn(languageFactoryCore)
.dependsOn(wdlModelBiscayne)
.dependsOn(wdlTransformsBiscayne)
lazy val cwlV1_0LanguageFactory = (project in languageFactoryRoot / "cwl-v1-0")
.withLibrarySettings("cwl-v1-0")
.dependsOn(languageFactoryCore)
.dependsOn(cwl)
lazy val `cloud-nio-spi` = (project in cloudNio / "cloud-nio-spi")
.withLibrarySettings(libraryName = "cloud-nio-spi", dependencies = spiDependencies)
lazy val `cloud-nio-util` = (project in cloudNio / "cloud-nio-util")
.dependsOn(`cloud-nio-spi`)
.withLibrarySettings(libraryName = "cloud-nio-util", dependencies = spiUtilDependencies)
lazy val `cloud-nio-impl-ftp` = (project in cloudNio / "cloud-nio-impl-ftp")
.withLibrarySettings(libraryName = "cloud-nio-impl-ftp", dependencies = implFtpDependencies)
.dependsOn(`cloud-nio-util`)
lazy val `cloud-nio-impl-drs` = (project in cloudNio / "cloud-nio-impl-drs")
.withLibrarySettings(libraryName = "cloud-nio-impl-drs", dependencies = implDrsDependencies)
.dependsOn(`cloud-nio-util`)
.dependsOn(common)
lazy val statsDProxy = (project in Path("scripts") / "perf" / "statsd-proxy")
.withExecutableSettings("statsd-proxy", dependencies = statsDProxyDependencies, pushDocker = false)
lazy val perf = project
.withExecutableSettings("perf", dependencies = perfDependencies, pushDocker = false)
.dependsOn(common)
lazy val server = project
.withExecutableSettings("cromwell", serverDependencies)
.dependsOn(engine)
.dependsOn(googlePipelinesV1Alpha2)
.dependsOn(googlePipelinesV2Alpha1)
.dependsOn(jesBackend)
.dependsOn(bcsBackend)
.dependsOn(awsBackend)
.dependsOn(tesBackend)
.dependsOn(sparkBackend)
.dependsOn(cromwellApiClient)
.dependsOn(wdlDraft2LanguageFactory)
.dependsOn(wdlDraft3LanguageFactory)
.dependsOn(wdlBiscayneLanguageFactory)
.dependsOn(cwlV1_0LanguageFactory)
.dependsOn(engine % "test->test")
.dependsOn(common % "test->test")
lazy val root = (project in file("."))
.withRootSettings()
// Full list of all sub-projects to build with the root (ex: include in `sbt test`)
.aggregate(`cloud-nio-impl-drs`)
.aggregate(`cloud-nio-impl-ftp`)
.aggregate(`cloud-nio-spi`)
.aggregate(`cloud-nio-util`)
.aggregate(awsBackend)
.aggregate(awsS3FileSystem)
.aggregate(backend)
.aggregate(bcsBackend)
.aggregate(centaur)
.aggregate(centaurCwlRunner)
.aggregate(cloudSupport)
.aggregate(common)
.aggregate(core)
.aggregate(cromiam)
.aggregate(cromwellApiClient)
.aggregate(cwl)
.aggregate(cwlV1_0LanguageFactory)
.aggregate(databaseMigration)
.aggregate(databaseSql)
.aggregate(dockerHashing)
.aggregate(drsFileSystem)
.aggregate(engine)
.aggregate(ftpFileSystem)
.aggregate(gcsFileSystem)
.aggregate(googlePipelinesCommon)
.aggregate(googlePipelinesV1Alpha2)
.aggregate(googlePipelinesV2Alpha1)
.aggregate(jesBackend)
.aggregate(languageFactoryCore)
.aggregate(ossFileSystem)
.aggregate(perf)
.aggregate(server)
.aggregate(services)
.aggregate(sfsBackend)
.aggregate(sparkBackend)
.aggregate(sraFileSystem)
.aggregate(statsDProxy)
.aggregate(tesBackend)
.aggregate(wdlBiscayneLanguageFactory)
.aggregate(wdlDraft2LanguageFactory)
.aggregate(wdlDraft3LanguageFactory)
.aggregate(wdlModelBiscayne)
.aggregate(wdlModelDraft2)
.aggregate(wdlModelDraft3)
.aggregate(wdlNewBaseTransforms)
.aggregate(wdlSharedModel)
.aggregate(wdlSharedTransforms)
.aggregate(wdlTransformsBiscayne)
.aggregate(wdlTransformsDraft2)
.aggregate(wdlTransformsDraft3)
.aggregate(wes2cromwell)
.aggregate(wom)
.aggregate(womtool)