sbt-assembly icon indicating copy to clipboard operation
sbt-assembly copied to clipboard

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

Open colinbes opened this issue 1 year ago • 0 comments

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
      ....
}

colinbes avatar Jun 13 '24 16:06 colinbes