Skip to content

Commit 28cfad2

Browse files
committed
Remove unused gcp/firebase dependencies
1 parent 464a092 commit 28cfad2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

build.sbt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,12 +423,24 @@ lazy val notificationworkerlambda = lambda("notificationworkerlambda", "notifica
423423
"com.squareup.okhttp3" % "okhttp" % okHttpVersion,
424424
"org.playframework" %% "play-json" % playJsonVersion,
425425
"com.google.oauth-client" % "google-oauth-client" % googleOAuthClient,
426+
"org.threeten" % "threetenbp" % "1.6.5", // Needed after excluding google-cloud-storage
426427
),
427428
excludeDependencies ++= Seq(
428429
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
429430
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
430431
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
431-
ExclusionRule(organization = "com.typesafe.play")
432+
ExclusionRule(organization = "com.typesafe.play"),
433+
434+
// Firebase Admin brings unused Google Cloud services
435+
ExclusionRule("com.google.cloud", "google-cloud-storage"),
436+
ExclusionRule("com.google.cloud", "google-cloud-firestore"),
437+
438+
// gRPC modules not needed for FCM HTTP API
439+
ExclusionRule("io.grpc", "grpc-xds"),
440+
ExclusionRule("io.grpc", "grpc-alts"),
441+
ExclusionRule("io.grpc", "grpc-grpclb"),
442+
ExclusionRule("io.grpc", "grpc-netty-shaded"),
443+
ExclusionRule("io.grpc", "grpc-netty"),
432444
),
433445
)
434446

0 commit comments

Comments
 (0)