sbt / sbt-assembly

Deploy über-JARs. Restart processes. (port of codahale/assembly-sbt)
MIT License
1.94k stars 223 forks source link

assemblyMergeStrategy case PathList("META-INF", xs @ _*) scala 3 deprecation warning #526

Open colinbes opened 3 weeks ago

colinbes commented 3 weeks ago

I am busy preparing projects to use Scala 3. The projects use sbt-assembly (2.2.0) to create Uber Jar.

In order to prepare for change to Scala 3 I have enabled -XSource:3 to show warnings of potential issues.

I am getting warning Scala 2 syntax with -Xsource:3 for xs @ _* and am unsure of what the fix would be.

ThisBuild / assemblyMergeStrategy := {
      case PathList("META-INF", xs @ _*)               => MergeStrategy.discard
      ....
}