enter code here
Is there a way to turn off reduplication in SBT's assembly
plugin?
I've been cleaning out an sbt assembly
build the old fashioned way, using sbt dependency-graph
to remove jar files which have differing versions of the same file.
- if I simply use last for the strategy, the resulting jar file failst with a duplicate entry when running makeJar.
- if I use discard for the strategy, the resulting jar file is trivial, with nothing in it.
However, in my case, this isn't a huge problem : I'd like to simply avoid doing reduplication entirely, and later at run time if I have issues, clean up dependency conflicts. This is normally how tools like maven seem to work, and I'd like to use SBT to build jars which are similar to the fat jars which are built by those tools.