Skip to content

Commit

Permalink
Move exclusion rule to subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfurey committed Apr 16, 2024
1 parent c8a0216 commit 7abee1d
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ lazy val common = project
Test / testOptions += Tests.Argument(TestFrameworks.Specs2, "sequential", "true")
)

excludeDependencies ++= Seq(
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
)

lazy val commonscheduledynamodb = project
.settings(LocalDynamoDBScheduleLambda.settings)
.settings(List(
Expand Down Expand Up @@ -301,7 +295,10 @@ lazy val schedulelambda = lambda("schedule", "schedulelambda")
"io.netty" % "netty-codec-http2" % nettyVersion
),
excludeDependencies ++= Seq(
ExclusionRule("org.playframework", "play-ahc-ws_2.13")
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
),
)
}
Expand All @@ -326,7 +323,10 @@ lazy val football = lambda("football", "football")
),
excludeDependencies ++= Seq(
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
ExclusionRule("software.amazon.awssdk", "ec2")
ExclusionRule("software.amazon.awssdk", "ec2"),
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
),
)

Expand Down Expand Up @@ -427,7 +427,10 @@ lazy val notificationworkerlambda = lambda("notificationworkerlambda", "notifica
"com.google.oauth-client" % "google-oauth-client" % googleOAuthClient,
),
excludeDependencies ++= Seq(
ExclusionRule("org.playframework", "play-ahc-ws_2.13")
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
),
)

Expand All @@ -439,14 +442,20 @@ lazy val fakebreakingnewslambda = lambda("fakebreakingnewslambda", "fakebreaking
"com.squareup.okhttp3" % "okhttp" % okHttpVersion,
),
excludeDependencies ++= Seq(
ExclusionRule("org.playframework", "play-ahc-ws_2.13")
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
),
)

lazy val reportExtractor = lambda("reportextractor", "reportextractor", Some("com.gu.notifications.extractor.LocalRun"))
.dependsOn(common)
.settings(
excludeDependencies ++= Seq(
ExclusionRule("org.playframework", "play-ahc-ws_2.13")
ExclusionRule("org.playframework", "play-ahc-ws_2.13"),
// As of Play 3.0, groupId has changed to org.playframework; exclude transitive dependencies to the old artifacts
// Hopefully this workaround can be removed once play-json-extensions either updates to Play 3.0 or is merged into play-json
ExclusionRule(organization = "com.typesafe.play")
)
)

0 comments on commit 7abee1d

Please sign in to comment.