assembly-merge-strategy issues using sbt-assembly

As for the current version 0.11.2 (2014-03-25), the way to define the merge strategy is different. This is documented here, the relevant part is: NOTE: mergeStrategy in assembly expects a function, you can’t do mergeStrategy in assembly := MergeStrategy.first The new way is (copied from the same source): mergeStrategy in assembly <<= (mergeStrategy in assembly) … Read more

How to add “provided” dependencies back to run/test tasks’ classpath?

For a similar case I used in assembly.sbt: run in Compile <<= Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run)) and now the ‘run’ task uses all the libraries, including the ones marked with “provided”. No further change was necessary. Update: @rob solution seems to be the only one working on latest … Read more