sbt/main
eugene yokota e6666e4b10
[2.0.x] Fix duplicate autoplugins packageBin mappings (#9255) (#9273)
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 <anatoliykmetyuk@gmail.com>
2026-05-30 20:16:58 -04:00
..
src [2.0.x] Fix duplicate autoplugins packageBin mappings (#9255) (#9273) 2026-05-30 20:16:58 -04:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00