Skip to content

Commit

Permalink
Add more jars to shaded
Browse files Browse the repository at this point in the history
  • Loading branch information
noCharger committed Oct 2, 2024
1 parent 37f6471 commit 76143b2
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,26 @@ lazy val testScalastyle = taskKey[Unit]("testScalastyle")
// - ShadeRule.rename(...) creates a rule to rename multiple package patterns
// - "shaded.@0" means prepend "shaded." to the original package name
// - .inAll applies the rule to all dependencies, not just direct dependencies
val packagesToShade = Seq(
"com.amazonaws.**",
"com.fasterxml.jackson.**",
"com.sun.jna.**",
"com.thoughtworks.paranamer.**",
"javax.annotation.**",
"org.antlr.v4.**",
"org.apache.**",
"org.glassfish.json.**",
"org.joda.time.**",
"org.json4s.**",
"org.reactivestreams.**",
"org.slf4j.**",
"org.yaml.**",
"software.amazon.**"
)

ThisBuild / assemblyShadeRules := Seq(
ShadeRule.rename(
"com.fasterxml.jackson.**" -> "shaded.@0",
"com.amazonaws.**" -> "shaded.@0",
"software.amazon.**" -> "shaded.@0"
packagesToShade.map(_ -> "shaded.flint.@0"): _*
).inAll
)

Expand Down

0 comments on commit 76143b2

Please sign in to comment.