how do I get sbt to gather all the jar files my code depends on into one place?

Tim Pigden picture Tim Pigden · Nov 2, 2011 · Viewed 25.9k times · Source

I'm new to . I want it to put all the dependency jar files as well as my jar file into one place. SBT will run the app, but I've got various dependencies scattered around and an .ivy folder full of things my jar file depends on indirectly.

So Is there a simple command to copy them all into a single place so I can distribute it to another machine?

Answer

pr1001 picture pr1001 · Nov 2, 2011

There are many plugins you can use: sbt-assembly, sbt-proguard, sbt-onejar, xitrum-package etc.

See the list of SBT plugins.