Skip to content

Commit

Permalink
Shade all of scala-collection-compat (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnei authored Nov 17, 2022
1 parent 8bd44d4 commit 31dae53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oDTF")
// include the scala xml and compat modules into the final jar, shaded
assembly / assemblyShadeRules := Seq(
ShadeRule.rename("scala.xml.**" -> "scapegoat.xml.@1").inAll,
ShadeRule.rename("scala.collection.compat.**" -> "scapegoat.compat.@1").inAll
ShadeRule.rename("scala.collection.compat.**" -> "scapegoat.compat.@1").inAll,
// scala-collection-compat has classes outside of the previous shade path, move them as well.
ShadeRule.rename("scala.util.control.compat.**" -> "scapegoat.util.@1").inAll
)
Compile / packageBin := crossTarget.value / (assembly / assemblyJarName).value
makePom := makePom.dependsOn(assembly).value
Expand Down

0 comments on commit 31dae53

Please sign in to comment.