Description sbt-assembly a merge strategy called a rename similar to it may allow something like the maven-shade-plugin shader operation, which will move classes and their references to allow incompatible library versions to be managed.
Would it be appropriate for sbt-assembly to execute this function?
I used the following merge strategy to try using renaming as a move mechanism, but while it matches all files, it passes them directly (which is consistent with viewing the code).
assemblyMergeStrategy in assembly := { s => s match { case PathList("com", "clearspring", "analytics", _*) => { println("match_cs: " + s) MergeStrategy.rename } case x => { println("x: " + x) val oldStrategy = (assemblyMergeStrategy in assembly).value oldStrategy(x) } } }
source share