mirror of
https://github.com/sbt/sbt.git
synced 2026-09-05 01:03:36 +02:00
Deduplicate executable jar package entries. In the issue, the duplicate was something like: (resource_managed/.../sbt/sbt.autoplugins, "sbt/sbt.autoplugins") (classes/.../sbt/sbt.autoplugins, "sbt/sbt.autoplugins") This is because copyResources copied autoplugin metadata to the classes directory. Solution: when composing the packageBinMappings, differentiate between artifacts that come from class directory and from outside of it. If there is a duplicate, prefer resource that comes from outside of it. Co-authored-by: Anatolii Kmetiuk <[email protected]>