-
Notifications
You must be signed in to change notification settings - Fork 360
/
build.sbt
467 lines (407 loc) · 16.5 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
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
import Dependencies._
import Settings._
// Libraries
lazy val common = project
.withLibrarySettings("cromwell-common", commonDependencies)
lazy val wom = project
.withLibrarySettings("cromwell-wom", womDependencies)
.dependsOn(common)
.dependsOn(common % "test->test")
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)
.dependsOn(common % "test->test")
lazy val wdlModelDraft2 = (project in wdlModelRoot / "draft2")
.withLibrarySettings("cromwell-wdl-model-draft2", wdlDependencies)
.dependsOn(wdlSharedTransforms)
.dependsOn(wdlSharedModel)
.dependsOn(wom % "test->test")
.dependsOn(common % "test->test")
lazy val wdlModelDraft3 = (project in wdlModelRoot / "draft3")
.withLibrarySettings("cromwell-wdl-model-draft3")
.dependsOn(wdlSharedModel)
.dependsOn(common % "test->test")
lazy val wdlModelBiscayne = (project in wdlModelRoot / "biscayne")
.withLibrarySettings("cromwell-wdl-model-biscayne")
.dependsOn(wdlModelDraft3)
.dependsOn(common % "test->test")
lazy val wdlModelCascades = (project in wdlModelRoot / "cascades")
.withLibrarySettings("cromwell-wdl-model-cascades")
.dependsOn(wdlSharedModel)
.dependsOn(common % "test->test")
lazy val wdlTransformsRoot = wdlRoot / "transforms"
lazy val wdlSharedTransforms = (project in wdlTransformsRoot / "shared")
.withLibrarySettings("cromwell-wdl-transforms-shared", wdlDependencies)
.dependsOn(wdlSharedModel)
.dependsOn(wom)
.dependsOn(common % "test->test")
lazy val wdlTransformsDraft2 = (project in wdlTransformsRoot / "draft2")
.withLibrarySettings("cromwell-wdl-transforms-draft2", wdlDependencies)
.dependsOn(wdlSharedTransforms)
.dependsOn(wdlModelDraft2)
.dependsOn(core % "test->test")
.dependsOn(common % "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)
.dependsOn(common % "test->test")
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 wdlTransformsCascades = (project in wdlTransformsRoot / "cascades")
.withLibrarySettings("cromwell-wdl-transforms-cascades", wdlDependencies)
.dependsOn(wdlNewBaseTransforms)
.dependsOn(languageFactoryCore)
.dependsOn(common % "test->test")
.dependsOn(wom % "test->test")
lazy val core = project
.withLibrarySettings("cromwell-core", coreDependencies)
.dependsOn(wom)
.dependsOn(wom % "test->test")
.dependsOn(common % "test->test")
lazy val cloudSupport = project
.withLibrarySettings("cromwell-cloud-support", cloudSupportDependencies)
.dependsOn(common)
.dependsOn(common % "test->test")
lazy val azureBlobNio = (project in file("azure-blob-nio"))
.withLibrarySettings("cromwell-azure-blobNio", azureBlobNioDependencies)
lazy val azureBlobFileSystem = (project in file("filesystems/blob"))
.withLibrarySettings("cromwell-azure-blobFileSystem", blobFileSystemDependencies)
.dependsOn(core)
.dependsOn(cloudSupport)
.dependsOn(azureBlobNio)
.dependsOn(core % "test->test")
.dependsOn(common % "test->test")
.dependsOn(azureBlobNio % "test->test")
lazy val awsS3FileSystem = (project in file("filesystems/s3"))
.withLibrarySettings("cromwell-aws-s3filesystem", s3FileSystemDependencies)
.dependsOn(core)
.dependsOn(cloudSupport)
.dependsOn(core % "test->test")
.dependsOn(cloudSupport % "test->test")
.dependsOn(common % "test->test")
lazy val httpFileSystem = (project in file("filesystems/http"))
.withLibrarySettings("cromwell-httpFileSystem", httpFileSystemDependencies)
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(common % "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")
.dependsOn(common % "test->test")
lazy val sraFileSystem = (project in file("filesystems/sra"))
.withLibrarySettings("cromwell-srafilesystem")
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(common % "test->test")
lazy val ftpFileSystem = (project in file("filesystems/ftp"))
.withLibrarySettings("cromwell-ftpFileSystem")
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(`cloud-nio-impl-ftp`)
.dependsOn(common % "test->test")
lazy val drsFileSystem = (project in file("filesystems/drs"))
.withLibrarySettings("cromwell-drsFileSystem")
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(`cloud-nio-impl-drs`)
.dependsOn(`cloud-nio-impl-drs` % "test->test")
.dependsOn(cloudSupport)
.dependsOn(common % "test->test")
lazy val databaseSql = (project in file("database/sql"))
.withLibrarySettings("cromwell-database-sql", databaseSqlDependencies)
.dependsOn(common % "test->test")
lazy val databaseMigration = (project in file("database/migration"))
.withLibrarySettings("cromwell-database-migration", databaseMigrationDependencies)
.dependsOn(core)
.dependsOn(wdlModelDraft2)
.dependsOn(wdlTransformsDraft2)
.dependsOn(common % "test->test")
lazy val dockerHashing = project
.withLibrarySettings("cromwell-docker-hashing", dockerHashingDependencies)
.dependsOn(cloudSupport)
.dependsOn(core)
.dependsOn(core % "test->test")
.dependsOn(common % "test->test")
lazy val cromwellApiClient = project
.withLibrarySettings("cromwell-api-client", cromwellApiClientDependencies)
.dependsOn(common % "test->test")
lazy val centaur = project
.withLibrarySettings("centaur", centaurDependencies, integrationTests = true)
.dependsOn(cloudSupport)
.dependsOn(cromwellApiClient)
.dependsOn(databaseSql)
.dependsOn(wdlModelDraft2)
.dependsOn(wdlTransformsDraft2)
.dependsOn(wdlTransformsDraft3)
.dependsOn(womtool)
.dependsOn(common % "test->test")
lazy val services = project
.withLibrarySettings("cromwell-services", servicesDependencies)
.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(wdlCascadesLanguageFactory % "test->test")
.dependsOn(core % "test->test")
.dependsOn(ftpFileSystem % "test->test")
.dependsOn(common % "test->test")
lazy val backendRoot = Path("supportedBackends")
lazy val backend = project
.withLibrarySettings("cromwell-backend", backendDependencies, backendSettings)
.dependsOn(services)
.dependsOn(core % "test->test")
.dependsOn(common % "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")
.dependsOn(common % "test->test")
lazy val googlePipelinesV2Beta = (project in backendRoot / "google" / "pipelines" / "v2beta")
.withLibrarySettings("cromwell-pipelines-v2-beta-backend")
.dependsOn(googlePipelinesCommon)
.dependsOn(googlePipelinesCommon % "test->test")
.dependsOn(core % "test->test")
.dependsOn(common % "test->test")
lazy val googleBatch = (project in backendRoot / "google" / "batch")
.withLibrarySettings("cromwell-google-batch-backend")
.dependsOn(core)
.dependsOn(backend)
.dependsOn(gcsFileSystem)
.dependsOn(drsFileSystem)
.dependsOn(sraFileSystem)
.dependsOn(httpFileSystem)
.dependsOn(backend % "test->test")
.dependsOn(gcsFileSystem % "test->test")
.dependsOn(services % "test->test")
.dependsOn(common % "test->test")
.dependsOn(core % "test->test")
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")
.dependsOn(common % "test->test")
lazy val sfsBackend = (project in backendRoot / "sfs")
.withLibrarySettings("cromwell-sfs-backend", sfsBackendDependencies)
.dependsOn(backend)
.dependsOn(gcsFileSystem)
.dependsOn(httpFileSystem)
.dependsOn(backend % "test->test")
.dependsOn(services % "test->test")
.dependsOn(common % "test->test")
lazy val tesBackend = (project in backendRoot / "tes")
.withLibrarySettings("cromwell-tes-backend", tesBackendDependencies)
.dependsOn(sfsBackend)
.dependsOn(ftpFileSystem)
.dependsOn(drsFileSystem)
.dependsOn(azureBlobFileSystem)
// TES backend provides a compatibility layer to run WDLs with PAPI runtime attributes [WX-769]
.dependsOn(googlePipelinesCommon)
.dependsOn(backend % "test->test")
.dependsOn(common % "test->test")
lazy val engine = project
.withLibrarySettings("cromwell-engine", engineDependencies, engineSettings)
.dependsOn(backend)
.dependsOn(gcsFileSystem)
.dependsOn(drsFileSystem)
.dependsOn(httpFileSystem)
.dependsOn(sraFileSystem)
.dependsOn(awsS3FileSystem)
.dependsOn(azureBlobFileSystem)
.dependsOn(awsS3FileSystem % "test->test")
.dependsOn(drsFileSystem % "test->test")
.dependsOn(httpFileSystem % "test->test")
.dependsOn(ftpFileSystem % "test->test")
.dependsOn(azureBlobFileSystem % "test->test")
.dependsOn(`cloud-nio-spi`)
.dependsOn(languageFactoryCore)
.dependsOn(wdlDraft2LanguageFactory % "test->test")
.dependsOn(wdlDraft3LanguageFactory % "test->test")
.dependsOn(wdlBiscayneLanguageFactory % "test->test")
.dependsOn(wdlCascadesLanguageFactory % "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")
// Executables
lazy val womtool = project
.withExecutableSettings("womtool", womtoolDependencies)
.dependsOn(wdlDraft2LanguageFactory)
.dependsOn(wdlDraft3LanguageFactory)
.dependsOn(wdlBiscayneLanguageFactory)
.dependsOn(wdlCascadesLanguageFactory)
.dependsOn(wom % "test->test")
.dependsOn(common % "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)
.dependsOn(common % "test->test")
lazy val wes2cromwell = project
.withExecutableSettings("wes2cromwell", wes2cromwellDependencies, buildDocker = false)
.dependsOn(common)
.dependsOn(cromiam)
.dependsOn(common % "test->test")
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", mockServerDependencies)
.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)
.dependsOn(common % "test->test")
lazy val wdlBiscayneLanguageFactory = (project in languageFactoryRoot / "wdl-biscayne")
.withLibrarySettings("wdl-biscayne")
.dependsOn(languageFactoryCore)
.dependsOn(wdlModelBiscayne)
.dependsOn(wdlTransformsBiscayne)
.dependsOn(common % "test->test")
lazy val wdlCascadesLanguageFactory = (project in languageFactoryRoot / "wdl-cascades")
.withLibrarySettings("wdl-cascades")
.dependsOn(languageFactoryCore)
.dependsOn(wdlModelCascades)
.dependsOn(wdlTransformsCascades)
.dependsOn(common % "test->test")
lazy val `cloud-nio-spi` = (project in cloudNio / "cloud-nio-spi")
.withLibrarySettings(libraryName = "cloud-nio-spi", dependencies = spiDependencies)
.dependsOn(common % "test->test")
lazy val `cloud-nio-util` = (project in cloudNio / "cloud-nio-util")
.dependsOn(`cloud-nio-spi`)
.withLibrarySettings(libraryName = "cloud-nio-util", dependencies = spiUtilDependencies)
.dependsOn(common % "test->test")
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`)
.dependsOn(common % "test->test")
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(cloudSupport)
.dependsOn(common)
.dependsOn(common % "test->test")
lazy val `cromwell-drs-localizer` = project
.withExecutableSettings("cromwell-drs-localizer", drsLocalizerDependencies, drsLocalizerSettings)
.dependsOn(`cloud-nio-impl-drs`)
.dependsOn(common)
.dependsOn(`cloud-nio-impl-drs` % "test->test")
lazy val pact4s = project.in(file("pact4s"))
.settings(pact4sSettings)
.dependsOn(engine)
.dependsOn(services)
.dependsOn(engine % "test->test")
.disablePlugins(sbtassembly.AssemblyPlugin)
lazy val server = project
.withExecutableSettings("cromwell", serverDependencies)
.dependsOn(engine)
.dependsOn(googlePipelinesV2Beta)
.dependsOn(googleBatch)
.dependsOn(awsBackend)
.dependsOn(tesBackend)
.dependsOn(cromwellApiClient)
.dependsOn(wdlDraft2LanguageFactory)
.dependsOn(wdlDraft3LanguageFactory)
.dependsOn(wdlBiscayneLanguageFactory)
.dependsOn(wdlCascadesLanguageFactory)
.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(`cromwell-drs-localizer`)
.aggregate(awsBackend)
.aggregate(awsS3FileSystem)
.aggregate(azureBlobNio)
.aggregate(azureBlobFileSystem)
.aggregate(backend)
.aggregate(centaur)
.aggregate(cloudSupport)
.aggregate(common)
.aggregate(core)
.aggregate(cromiam)
.aggregate(cromwellApiClient)
.aggregate(databaseMigration)
.aggregate(databaseSql)
.aggregate(dockerHashing)
.aggregate(drsFileSystem)
.aggregate(engine)
.aggregate(ftpFileSystem)
.aggregate(gcsFileSystem)
.aggregate(googlePipelinesCommon)
.aggregate(googlePipelinesV2Beta)
.aggregate(googleBatch)
.aggregate(httpFileSystem)
.aggregate(languageFactoryCore)
.aggregate(server)
.aggregate(services)
.aggregate(sfsBackend)
.aggregate(sraFileSystem)
.aggregate(tesBackend)
.aggregate(wdlBiscayneLanguageFactory)
.aggregate(wdlCascadesLanguageFactory)
.aggregate(wdlDraft2LanguageFactory)
.aggregate(wdlDraft3LanguageFactory)
.aggregate(wdlModelBiscayne)
.aggregate(wdlModelCascades)
.aggregate(wdlModelDraft2)
.aggregate(wdlModelDraft3)
.aggregate(wdlNewBaseTransforms)
.aggregate(wdlSharedModel)
.aggregate(wdlSharedTransforms)
.aggregate(wdlTransformsBiscayne)
.aggregate(wdlTransformsCascades)
.aggregate(wdlTransformsDraft2)
.aggregate(wdlTransformsDraft3)
.aggregate(wes2cromwell)
.aggregate(wom)
.aggregate(womtool)
.aggregate(pact4s)
.withAggregateSettings()