-
Notifications
You must be signed in to change notification settings - Fork 351
/
Dependencies.scala
713 lines (613 loc) · 29.4 KB
/
Dependencies.scala
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
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
import sbt._
object Dependencies {
private val akkaHttpCirceIntegrationV = "1.39.2"
private val akkaHttpV = "10.1.15" // (CROM-6619)
private val akkaV = "2.5.32" // scala-steward:off (CROM-6637)
private val ammoniteOpsV = "2.4.1"
private val apacheHttpClientV = "4.5.13"
private val awsSdkV = "2.17.152"
// We would like to use the BOM to manage Azure SDK versions, but SBT doesn't support it.
// https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/boms/azure-sdk-bom
// https://github.com/sbt/sbt/issues/4531
private val azureIdentitySdkV = "1.4.2"
private val azureKeyVaultSdkV = "4.3.7"
private val betterFilesV = "3.9.1"
/*
cats-effect, fs2, http4s, and sttp (also to v3) should all be upgraded at the same time to use cats-effect 3.x.
*/
private val catsEffectV = "2.5.3" // scala-steward:off (CROM-6564)
private val catsV = "2.7.0"
private val circeConfigV = "0.8.0"
private val circeGenericExtrasV = "0.14.1"
private val circeOpticsV = "0.14.1"
private val circeV = "0.14.1"
private val circeYamlV = "0.14.1"
private val commonsCodecV = "1.15" // via: https://commons.apache.org/proper/commons-codec/
private val commonsCsvV = "1.9.0"
private val commonsIoV = "2.11.0" // via: https://commons.apache.org/proper/commons-io/
private val commonsLang3V = "3.12.0"
private val commonsMathV = "3.6.1"
private val commonNetV = "3.8.0" // via: https://commons.apache.org/proper/commons-net/
private val commonsTextV = "1.9"
private val configsV = "0.6.1"
private val delightRhinoSandboxV = "0.0.15"
private val diffsonSprayJsonV = "4.1.1"
private val ficusV = "1.5.1"
private val fs2V = "2.5.9" // scala-steward:off (CROM-6564)
private val googleApiClientV = "1.33.2"
private val googleCloudBigQueryV = "2.10.0"
// latest date via: https://github.com/googleapis/google-api-java-client-services/blob/main/clients/google-api-services-cloudkms/v1.metadata.json
private val googleCloudKmsV = "v1-rev20220104-1.32.1"
private val googleCloudMonitoringV = "3.2.5"
private val googleCloudNioV = "0.124.8"
private val googleCloudStorageV = "2.9.2"
private val googleGaxGrpcV = "2.12.2"
// latest date via: https://mvnrepository.com/artifact/com.google.apis/google-api-services-genomics
private val googleGenomicsServicesV2Alpha1ApiV = "v2alpha1-rev20210811-1.32.1"
private val googleHttpClientApacheV = "2.1.2"
private val googleHttpClientV = "1.38.0"
// latest date via: https://mvnrepository.com/artifact/com.google.apis/google-api-services-lifesciences
private val googleLifeSciencesServicesV2BetaApiV = "v2beta-rev20210813-1.32.1"
private val googleOauth2V = "1.5.3"
private val googleOauthClientV = "1.33.1"
private val googleCloudResourceManagerV = "1.2.5"
private val grpcV = "1.45.0"
private val guavaV = "31.0.1-jre"
private val heterodonV = "1.0.0-beta3"
private val hsqldbV = "2.6.1"
private val http4sV = "0.21.31" // this release is EOL. We need to upgrade further for cats3. https://http4s.org/versions/
private val jacksonV = "2.13.3"
private val janinoV = "3.1.6"
private val jsr305V = "3.0.2"
private val junitV = "4.13.2"
private val kindProjectorV = "0.13.2"
private val kittensV = "2.3.2"
private val liquibaseV = "4.8.0"
private val logbackV = "1.2.10"
private val lz4JavaV = "1.8.0"
private val mariadbV = "2.7.4"
/*
The StatsD reporter for DropWizard's (Code Hale's) Metrics 3.x still works with Metrics 4.x.
Still would be great to move to Prometheus / OpenCensus
*/
private val metrics4ScalaV = "4.2.8"
private val metrics3StatsdV = "4.2.0"
private val mockFtpServerV = "3.0.0"
private val mockitoV = "3.11.2"
private val mockserverNettyV = "5.11.2"
private val mouseV = "1.0.10"
/*
Newer version 8.0.29 fails `Control characters should work with metadata` Centaur tests, has charset changes mentioned in release notes
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-29.html#mysqld-8-0-29-charset
*/
private val mysqlV = "8.0.28"
private val nettyV = "4.1.72.Final"
private val owlApiV = "5.1.19"
private val postgresV = "42.3.3"
private val pprintV = "0.7.1"
private val rdf4jV = "3.7.1"
private val refinedV = "0.9.28"
private val rhinoV = "1.7.13"
private val scalaCollectionCompatV = "2.5.0"
private val scalaGraphV = "1.13.1"
private val scalaLoggingV = "3.9.4"
private val scalaPoolV = "0.4.3"
private val scalacticV = "3.2.10"
private val scalameterV = "0.19"
private val scalatestV = "3.2.10"
private val scalatestScalacheckV = scalatestV + ".0"
private val scoptV = "4.0.1"
private val sentryLogbackV = "5.2.4"
private val shapelessV = "2.3.7"
private val simulacrumV = "1.0.1"
private val slf4jV = "1.7.32"
private val slickCatsV = "0.10.4"
/* If you're about to update our Slick version:
* Consider checking whether the new Slick version passes tests with upserts enabled (eg KeyValueDatabaseSpec)
*
* Current version 3.3.2-2076hotfix was built locally from https://github.com/grsterin/slick/tree/v3.3.2-2076hotfix
* and manually uploaded to the Broad Institute artifactory at https://broadinstitute.jfrog.io/broadinstitute/.
* Consider updating to the official newer Slick version once they fix issue #2076
* Related Slick PR: https://github.com/slick/slick/pull/2101
*
* Update 2022-03-23: This #2201 PR cherry picks Greg's #2101 PR above and claims to fix the issue:
* https://github.com/slick/slick/pull/2201
*/
private val slickV = "3.4.0-M1"
private val snakeyamlV = "1.30"
private val sprayJsonV = "1.3.6"
private val sttpV = "1.7.2"
private val swaggerParserV = "1.0.56"
private val swaggerUiV = "4.5.0"
private val testContainersScalaV = "0.40.2"
private val tikaV = "2.3.0"
private val typesafeConfigV = "1.4.1"
private val workbenchGoogleV = "0.21-5c9c4f6" // via: https://github.com/broadinstitute/workbench-libs/blob/develop/google/CHANGELOG.md
private val workbenchModelV = "0.15-f9f0d4c" // via: https://github.com/broadinstitute/workbench-libs/blob/develop/model/CHANGELOG.md
private val workbenchUtilV = "0.6-65bba14" // via: https://github.com/broadinstitute/workbench-libs/blob/develop/util/CHANGELOG.md
private val slf4jFacadeDependencies = List(
"org.slf4j" % "slf4j-api" % slf4jV,
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingV,
)
private val circeYamlDependency = "io.circe" %% "circe-yaml" % circeYamlV
private val circeDependencies = List(
"core",
"parser",
"generic",
"shapes",
"refined",
"literal"
).map(m => "io.circe" %% s"circe-$m" % circeV) :+ circeYamlDependency :+
"io.circe" %% "circe-generic-extras" % circeGenericExtrasV :+
"io.circe" %% "circe-config" % circeConfigV
private val catsDependencies = List(
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "alleycats-core" % catsV,
"org.typelevel" %% "mouse" % mouseV,
"org.typelevel" %% "kittens" % kittensV
)
private val http4sDependencies = List(
"org.http4s" %% "http4s-dsl" % http4sV,
"org.http4s" %% "http4s-blaze-client" % http4sV,
"org.http4s" %% "http4s-circe" % http4sV,
)
private val googleApiClientDependencies = List(
// Used by swagger, but only in tests. This overrides an older 2.1.3 version of jackson-core brought in by
// these Google dependencies, but which isn't properly evicted by IntelliJ's sbt integration.
"com.fasterxml.jackson.core" % "jackson-core" % jacksonV,
// The exclusions prevent guava from colliding at assembly time.
"com.google.guava" % "guava" % guavaV,
"com.google.api-client" % "google-api-client-java6" % googleApiClientV
exclude("com.google.guava", "guava-jdk5"),
"com.google.api-client" % "google-api-client-jackson2" % googleApiClientV
exclude("com.google.guava", "guava-jdk5"),
"com.google.cloud" % "google-cloud-resourcemanager" % googleCloudResourceManagerV,
)
val spiDependencies: List[ModuleID] = List(
"com.iheart" %% "ficus" % ficusV,
) ++ googleApiClientDependencies ++ slf4jFacadeDependencies
val spiUtilDependencies = List(
"com.iheart" %% "ficus" % ficusV,
"org.typelevel" %% "cats-effect" % catsEffectV,
)
val azureDependencies: List[ModuleID] = List(
"com.azure" % "azure-identity" % azureIdentitySdkV
exclude("jakarta.xml.bind", "jakarta.xml.bind-api")
exclude("jakarta.activation", "jakarta.activation-api"),
"com.azure" % "azure-security-keyvault-secrets" % azureKeyVaultSdkV
exclude("jakarta.xml.bind", "jakarta.xml.bind-api")
exclude("jakarta.activation", "jakarta.activation-api")
)
val implFtpDependencies = List(
"commons-net" % "commons-net" % commonNetV,
"io.github.andrebeat" %% "scala-pool" % scalaPoolV,
"com.google.guava" % "guava" % guavaV,
"org.mockftpserver" % "MockFtpServer" % mockFtpServerV % Test
)
val implDrsDependencies: List[ModuleID] = List(
"org.apache.commons" % "commons-lang3" % commonsLang3V,
"com.google.cloud" % "google-cloud-storage" % googleCloudStorageV,
"com.google.oauth-client" % "google-oauth-client" % googleOauthClientV
) ++ circeDependencies ++ catsDependencies ++ azureDependencies
// Internal collections of dependencies
private val betterFilesDependencies = List(
"com.github.pathikrit" %% "better-files" % betterFilesV
)
private val configDependencies = List(
"com.typesafe" % "config" % typesafeConfigV,
"com.iheart" %% "ficus" % ficusV
)
/*
Adds a variety of logging libraries required for actual logging. However, some of these aren't always required.
Ex: If one isn't using akka & slf4j, then 'akka-slf4j' isn't required. However, for now, all executables are using
akka & slf4j... so leaving it.
Similarly, not _all_ executables/logback.xml configs will need logback-access, raven-logback, janino, etc.
Still, leaving them as dependencies for simplicity's sake.
*/
private val slf4jBindingDependencies = List(
// http://logback.qos.ch/dependencies.html
"ch.qos.logback" % "logback-access" % logbackV,
"ch.qos.logback" % "logback-classic" % logbackV,
"ch.qos.logback" % "logback-core" % logbackV,
"com.typesafe.akka" %% "akka-slf4j" % akkaV,
"io.sentry" % "sentry-logback" % sentryLogbackV,
"org.codehaus.janino" % "janino" % janinoV,
// Replace all log4j usage with slf4j
// https://www.slf4j.org/legacy.html#log4j-over-slf4j
"org.slf4j" % "log4j-over-slf4j" % slf4jV
) ++ slf4jFacadeDependencies
private val slickDependencies = List(
"com.typesafe.slick" %% "slick" % slickV,
"com.typesafe.slick" %% "slick-hikaricp" % slickV,
"com.rms.miu" %% "slick-cats" % slickCatsV
)
private val liquibaseDependencies = List(
"org.liquibase" % "liquibase-core" % liquibaseV
)
private val akkaDependencies = List(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % Test,
)
private val akkaStreamDependencies = List(
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-stream-testkit" % akkaV % Test,
) ++ akkaDependencies
private val akkaHttpDependencies = List(
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV % Test,
// WOM internally embeds spray-json. Leave this import here until WOM externalizes the json library choice like
// other libraries do. See akka-http, elastic4s, etc.
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
) ++ akkaStreamDependencies
private val akkaHttpCirceIntegrationDependency = List(
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpCirceIntegrationV
)
private val swaggerUiDependencies = List(
"org.webjars" % "swagger-ui" % swaggerUiV,
"io.swagger" % "swagger-parser" % swaggerParserV % Test,
"org.yaml" % "snakeyaml" % snakeyamlV % Test
)
private val googleGenomicsV2Alpha1Dependency = List(
"com.google.apis" % "google-api-services-genomics" % googleGenomicsServicesV2Alpha1ApiV
exclude("com.google.guava", "guava-jdk5")
)
private val googleLifeSciencesV2BetaDependency = List(
"com.google.apis" % "google-api-services-lifesciences" % googleLifeSciencesServicesV2BetaApiV
exclude("com.google.guava", "guava-jdk5")
)
/*
Used instead of `"org.lerch" % "s3fs" % s3fsV exclude("org.slf4j", "jcl-over-slf4j")`
org.lerch:s3fs:1.0.1 depends on a preview release of software.amazon.awssdk:s3.
Instead the code has been re-forked into this repo, just like many of the other FileSystemProvider extensions.
*/
private val s3fsDependencies = List(
"com.google.code.findbugs" % "jsr305" % jsr305V,
"com.google.guava" % "guava" % guavaV,
"org.apache.tika" % "tika-core" % tikaV,
"software.amazon.awssdk" % "s3" % awsSdkV,
) ++ slf4jBindingDependencies
private val awsCloudDependencies = List(
"com.fasterxml.jackson.core" % "jackson-annotations" % jacksonV,
) ++ s3fsDependencies ++ List(
"batch",
"core",
"cloudwatchlogs",
"s3",
"sts",
).map(artifactName => "software.amazon.awssdk" % artifactName % awsSdkV)
private val googleCloudDependencies = List(
"io.grpc" % "grpc-core" % grpcV,
"com.google.guava" % "guava" % guavaV,
"com.google.cloud" % "google-cloud-nio" % googleCloudNioV
exclude("com.google.api.grpc", "grpc-google-common-protos")
exclude("com.google.cloud.datastore", "datastore-v1-protos")
exclude("org.apache.httpcomponents", "httpclient"),
"org.broadinstitute.dsde.workbench" %% "workbench-google" % workbenchGoogleV
exclude("com.google.apis", "google-api-services-genomics"),
"org.apache.httpcomponents" % "httpclient" % apacheHttpClientV,
"com.google.apis" % "google-api-services-cloudkms" % googleCloudKmsV
exclude("com.google.guava", "guava-jdk5")
) ++ googleGenomicsV2Alpha1Dependency ++ googleLifeSciencesV2BetaDependency
private val dbmsDependencies = List(
"org.hsqldb" % "hsqldb" % hsqldbV,
"org.mariadb.jdbc" % "mariadb-java-client" % mariadbV,
"mysql" % "mysql-connector-java" % mysqlV,
"org.postgresql" % "postgresql" % postgresV
)
private val refinedTypeDependenciesList = List(
"eu.timepit" %% "refined" % refinedV
)
// Sub-project dependencies, added in addition to any dependencies inherited from .dependsOn().
val commonDependencies: List[ModuleID] = List(
"org.typelevel" %% "cats-effect" % catsEffectV,
"org.apache.commons" % "commons-lang3" % commonsLang3V,
"org.apache.commons" % "commons-text" % commonsTextV,
"com.lihaoyi" %% "pprint" % pprintV,
) ++ catsDependencies ++ configDependencies ++ slf4jFacadeDependencies ++ refinedTypeDependenciesList
val cloudSupportDependencies: List[ModuleID] = googleApiClientDependencies ++ googleCloudDependencies ++ betterFilesDependencies ++ awsCloudDependencies
val databaseSqlDependencies: List[ModuleID] = List(
"commons-io" % "commons-io" % commonsIoV,
) ++ configDependencies ++ catsDependencies ++ slickDependencies ++ dbmsDependencies ++ refinedTypeDependenciesList
val statsDDependencies = List(
"nl.grons" %% "metrics4-scala" % metrics4ScalaV,
"com.readytalk" % "metrics3-statsd" % metrics3StatsdV
)
val stackdriverDependencies = List(
"com.google.cloud" % "google-cloud-monitoring" % googleCloudMonitoringV
)
/*
Generators are eventually coming to ScalaTest. Someday...
- https://youtu.be/lKtg-CDVDsI?t=562
For now use scalatestplus' scalacheck wrapper.
Tests that insist on using PropertyGenerators should actually use ScalaTest's wrapper. ScalaCheck tests no longer
run by default. See Testing.scala where only `ScalaTest` is specified in the `testFrameworks`.
See also (may be out of date):
- https://github.com/scalatest/scalatest/issues/1735
- https://www.scalatest.org/user_guide/generator_driven_property_checks
- https://www.scalatest.org/user_guide/writing_scalacheck_style_properties
*/
private val scalacheckBaseV = "1.15"
private val scalacheckDependencies = List(
"org.scalatestplus" %% s"scalacheck-${scalacheckBaseV.replace(".", "-")}" % scalatestScalacheckV % Test,
)
/*
Note: `junitDependencies` only adds the dependency for JUnit tests to compile.
To actually _run_ the tests via SBT one would need the SBT to JUnit interface:
- https://github.com/sbt/junit-interface/
However, as of Aug 2021 there is only one S3 Java file using JUnit, and that code was copy-pasted from an
external GitHub repo. See `s3fsDependencies` for more information.
Also as of Aug 2021 Testing.scala only looks for and runs ScalaTest during regular testing.
*/
private val junitDependencies = List(
"junit" % "junit" % junitV % Test
)
private val testDatabaseDependencies =
List("scalatest", "mysql", "mariadb", "postgresql")
.map(name => "com.dimafeng" %% s"testcontainers-scala-$name" % testContainersScalaV % Test)
val s3FileSystemDependencies: List[ModuleID] = junitDependencies
val gcsFileSystemDependencies: List[ModuleID] = akkaHttpDependencies
val httpFileSystemDependencies: List[ModuleID] = akkaHttpDependencies
val womDependencies: List[ModuleID] = List(
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingV,
"io.spray" %% "spray-json" % sprayJsonV,
"org.typelevel" %% "simulacrum" % simulacrumV,
"commons-codec" % "commons-codec" % commonsCodecV
) ++ scalacheckDependencies ++ circeDependencies ++ refinedTypeDependenciesList
val wdlDependencies: List[ModuleID] = List(
"commons-io" % "commons-io" % commonsIoV,
"org.scala-graph" %% "graph-core" % scalaGraphV,
"com.chuusai" %% "shapeless" % shapelessV
) ++ betterFilesDependencies
val languageFactoryDependencies = List(
"com.softwaremill.sttp" %% "core" % sttpV,
"com.softwaremill.sttp" %% "async-http-client-backend-cats" % sttpV
)
val draft2LanguageFactoryDependencies = List(
"org.mock-server" % "mockserver-netty" % mockserverNettyV % Test
)
/*
The distro artifact contains the actual impl, but transitively includes OSGI bundles that conflict with assembly:
- https://github.com/owlcs/owlapi/wiki/Documentation/45d8f63d055f820c6ac2ca6c4679a2a7b705449b#howto
- https://github.com/owlcs/owlapi/issues/455
- https://github.com/owlcs/owlapi/issues/603
jcl-over-slf4j.jar is a replacement for commons-logging 1.1.1. Meanwhile our extensive transitive use of apache's
httpclient has been including commons-logging 1.2 for a while. Now the owl api dependency jcl-over-slf4j is
conflicting during assembly. As there have been no reported errors AFAIK with commons-logging leaving it in for now.
However as we use slf4j for cromwell log configuration the correct thing might actually be to exclude commons-logging
whenever importing httpclient and include jcl-over-slf4j. That way we can control all of our logging in one place.
- https://www.slf4j.org/legacy.html#jclOverSLF4J
*/
val owlApiDependencies = List(
"net.sourceforge.owlapi" % "owlapi-distribution" % owlApiV
exclude("org.apache.httpcomponents", "httpclient-osgi")
exclude("org.apache.httpcomponents", "httpcore-osgi")
exclude("org.slf4j", "jcl-over-slf4j"),
"org.apache.httpcomponents" % "httpclient-cache" % apacheHttpClientV,
"org.apache.httpcomponents" % "httpclient" % apacheHttpClientV
)
val cwlDependencies: List[ModuleID] = List(
"com.lihaoyi" %% "ammonite-ops" % ammoniteOpsV,
"org.broadinstitute" % "heterodon" % heterodonV classifier "single",
"org.scalactic" %% "scalactic" % scalacticV,
"io.circe" %% "circe-optics" % circeOpticsV,
"org.mozilla" % "rhino" % rhinoV,
"org.javadelight" % "delight-rhino-sandbox" % delightRhinoSandboxV,
"commons-io" % "commons-io" % commonsIoV % Test
) ++ betterFilesDependencies ++ owlApiDependencies
val womtoolDependencies: List[ModuleID] = catsDependencies ++ slf4jBindingDependencies
val centaurCwlRunnerDependencies: List[ModuleID] = List(
"com.github.scopt" %% "scopt" % scoptV,
"io.circe" %% "circe-optics" % circeOpticsV
) ++ slf4jBindingDependencies
val coreDependencies: List[ModuleID] = List(
"com.google.auth" % "google-auth-library-oauth2-http" % googleOauth2V,
"com.chuusai" %% "shapeless" % shapelessV,
"com.storm-enroute" %% "scalameter" % scalameterV % Test,
"com.github.scopt" %% "scopt" % scoptV,
) ++ akkaStreamDependencies ++ configDependencies ++ catsDependencies ++ circeDependencies ++
googleApiClientDependencies ++ statsDDependencies ++ betterFilesDependencies ++
// TODO: We're not using the "F" in slf4j. Core only supports logback, specifically the WorkflowLogger.
slf4jBindingDependencies ++ stackdriverDependencies
val databaseMigrationDependencies: List[ModuleID] = liquibaseDependencies ++ dbmsDependencies
val dockerHashingDependencies: List[ModuleID] = http4sDependencies ++ circeDependencies
val cromwellApiClientDependencies: List[ModuleID] = List(
"org.typelevel" %% "cats-effect" % catsEffectV,
"co.fs2" %% "fs2-io" % fs2V % Test,
) ++ akkaHttpDependencies ++ betterFilesDependencies ++ catsDependencies
val centaurDependencies: List[ModuleID] = List(
"org.apache.commons" % "commons-math3" % commonsMathV,
"com.github.kxbmap" %% "configs" % configsV,
"com.google.cloud" % "google-cloud-bigquery" % googleCloudBigQueryV % IntegrationTest,
"org.gnieh" %% "diffson-spray-json" % diffsonSprayJsonV
) ++ circeDependencies ++ slf4jBindingDependencies ++ cloudSupportDependencies ++ http4sDependencies
val engineDependencies: List[ModuleID] = List(
"commons-codec" % "commons-codec" % commonsCodecV,
"commons-io" % "commons-io" % commonsIoV,
"com.storm-enroute" %% "scalameter" % scalameterV
exclude("com.fasterxml.jackson.core", "jackson-databind")
exclude("com.fasterxml.jackson.module", "jackson-module-scala")
exclude("org.scala-tools.testing", "test-interface"),
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonV,
"io.github.andrebeat" %% "scala-pool" % scalaPoolV
) ++ swaggerUiDependencies ++ akkaHttpDependencies ++ akkaHttpCirceIntegrationDependency ++ circeDependencies ++
testDatabaseDependencies
val servicesDependencies: List[ModuleID] = List(
"com.google.api" % "gax-grpc" % googleGaxGrpcV,
"org.apache.commons" % "commons-csv" % commonsCsvV,
) ++ testDatabaseDependencies
val serverDependencies: List[ModuleID] = slf4jBindingDependencies
val cromiamDependencies: List[ModuleID] = List(
"com.softwaremill.sttp" %% "core" % sttpV,
"com.softwaremill.sttp" %% "async-http-client-backend-future" % sttpV,
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingV,
"org.broadinstitute.dsde.workbench" %% "workbench-model" % workbenchModelV,
"org.broadinstitute.dsde.workbench" %% "workbench-util" % workbenchUtilV
) ++ akkaHttpDependencies ++ swaggerUiDependencies ++ slf4jBindingDependencies
val wes2cromwellDependencies: List[ModuleID] = coreDependencies ++ akkaHttpDependencies
val backendDependencies: List[ModuleID] = List(
"co.fs2" %% "fs2-io" % fs2V
) ++ scalacheckDependencies
val tesBackendDependencies: List[ModuleID] = akkaHttpDependencies
val sfsBackendDependencies = List (
"org.lz4" % "lz4-java" % lz4JavaV
)
val testDependencies: List[ModuleID] = List(
"org.scalatest" %% "scalatest" % scalatestV,
// Use mockito Java DSL directly instead of the numerous and often hard to keep updated Scala DSLs.
// See also scaladoc in common.mock.MockSugar and that trait's various usages.
"org.mockito" % "mockito-core" % mockitoV
) ++ slf4jBindingDependencies // During testing, add an slf4j binding for _all_ libraries.
val kindProjectorPlugin = "org.typelevel" % "kind-projector" % kindProjectorV cross CrossVersion.full
// Version of the swagger UI to write into config files
val swaggerUiVersion: String = swaggerUiV
val perfDependencies: List[ModuleID] = circeDependencies ++ betterFilesDependencies ++ commonDependencies ++
googleApiClientDependencies ++ googleCloudDependencies
val drsLocalizerDependencies: List[ModuleID] = List(
"com.google.auth" % "google-auth-library-oauth2-http" % googleOauth2V,
"com.google.cloud" % "google-cloud-storage" % googleCloudStorageV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"com.iheart" %% "ficus" % ficusV,
"com.softwaremill.sttp" %% "circe" % sttpV,
"com.github.scopt" %% "scopt" % scoptV,
) ++ circeDependencies ++ catsDependencies ++ slf4jBindingDependencies ++ languageFactoryDependencies ++ azureDependencies
val allProjectDependencies: List[ModuleID] =
backendDependencies ++
centaurCwlRunnerDependencies ++
centaurDependencies ++
cloudSupportDependencies ++
commonDependencies ++
coreDependencies ++
cromiamDependencies ++
cromwellApiClientDependencies ++
cwlDependencies ++
databaseMigrationDependencies ++
databaseSqlDependencies ++
draft2LanguageFactoryDependencies ++
drsLocalizerDependencies ++
engineDependencies ++
gcsFileSystemDependencies ++
httpFileSystemDependencies ++
implDrsDependencies ++
implFtpDependencies ++
languageFactoryDependencies ++
perfDependencies ++
serverDependencies ++
sfsBackendDependencies ++
spiDependencies ++
spiUtilDependencies ++
tesBackendDependencies ++
wdlDependencies ++
wes2cromwellDependencies ++
womDependencies ++
womtoolDependencies
/*
If you see warnings from SBT about evictions, insert a specific dependency version into this list.
Do not know a good way to check when these are out of date as `sbt dependencyUpdates` does not
report on dependency overrides.
Any dependencies that are removed may be also removed from this list.
However, be careful about downgrading any of these dependencies.
Older versions have known vulnerabilities, ex: CVE-2017-7525
=== SECURITY UPGRADES ===
When upgrading dependencies to fix security issues, it is preferable to start with upgrading the
library that brings it in. Only fall back to overriding here when the latest library version still
has a vulnerable version of the dependency, or a major version upgrade is required and infeasible.
This algorithm makes it simpler to upgrade libraries in the future, because we don't have to
remember to remove the override.
*/
val googleHttpClientDependencies = List(
/*
Move the google-http-client versions past https://github.com/googleapis/google-http-java-client/issues/606
This created a situation where com/google/api/client/http/apache/ApacheHttpTransport.class was in *both*
transitive dependencies causing an assembly merge conflict.
At the time of this comment older versions are being pulled in via
https://mvnrepository.com/artifact/com.google.api-client/google-api-client/1.28.0
*/
"com.google.http-client" % "google-http-client-apache" % googleHttpClientApacheV,
"com.google.http-client" % "google-http-client" % googleHttpClientV,
)
val nettyDependencyOverrides: List[ModuleID] = List(
"buffer",
"codec",
"codec-dns",
"codec-http",
"codec-http2",
"codec-socks",
"common",
"handler-proxy",
"resolver",
"resolver-dns",
"transport",
"transport-native-epoll",
"transport-native-unix-common",
).map(m => "io.netty" % s"netty-$m" % nettyV)
val rdf4jDependencyOverrides: List[ModuleID] = List(
/*
Yes. All of these are required to lock in the rdf4j version.
Feel free to update versions but do not remove these overrides unless and until an updated
owl-api is no longer pulling in vulnerable rdf4j dependencies.
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000644
See comment mentioning "OSGI" further above for more info on the bundling of dependencies.
*/
"model",
"rio-api",
"rio-binary",
"rio-datatypes",
"rio-jsonld",
"rio-languages",
"rio-n3",
"rio-nquads",
"rio-ntriples",
"rio-rdfjson",
"rio-rdfxml",
"rio-trig",
"rio-trix",
"rio-turtle",
"util",
).map(m => "org.eclipse.rdf4j" % s"rdf4j-$m" % rdf4jV)
// Some libraries are importing older version of these dependencies, causing conflicts. Hence the need to override them.
val grpcDependencyOverrides: List[ModuleID] = List(
"alts",
"auth",
"context",
"core",
"grpclb",
"netty-shaded",
"protobuf-lite",
"protobuf",
"stub",
).map(m => "io.grpc" % s"grpc-$m" % grpcV)
/*
Ensure we're using the latest to avoid a shading bug in earlier versions of scala-collection-compat.
https://github.com/scala/scala-collection-compat/issues/426
*/
private val scalaCollectionCompatOverrides = List(
"org.scala-lang.modules" %% "scala-collection-compat" % scalaCollectionCompatV,
)
private val asyncHttpClientOverrides = List(
"org.asynchttpclient" % "async-http-client" % "2.10.5",
)
private val nimbusdsOverrides = List(
"com.nimbusds" % "nimbus-jose-jwt" % "9.23",
)
private val bouncyCastleOverrides = List(
"org.bouncycastle" % "bcprov-jdk15on" % "1.70",
)
private val protobufJavaOverrides = List(
"com.google.protobuf" % "protobuf-java" % "3.21.2",
)
/*
If we use a version in one of our projects, that's the one we want all the libraries to use
...plus other groups of transitive dependencies shared across multiple projects
*/
val cromwellDependencyOverrides: List[ModuleID] =
allProjectDependencies ++
googleHttpClientDependencies ++
nettyDependencyOverrides ++
rdf4jDependencyOverrides ++
grpcDependencyOverrides ++
scalaCollectionCompatOverrides ++
asyncHttpClientOverrides ++
nimbusdsOverrides ++
bouncyCastleOverrides ++
protobufJavaOverrides
}