I\'m new to sbt. 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 s
May you looking for this sbt plugin: https://github.com/anvie/sbt-onedir-plugin
There are many plugins you can use: sbt-assembly, sbt-proguard, sbt-onejar, xitrum-package etc.
See the list of SBT plugins.
You could also try SBT Native Packager: https://github.com/sbt/sbt-native-packager (sbt 0.7+)
This is still a WIP but will be used in Play Framework 2.2 in the coming weeks. With this, you can create standalone ZIP files, Debian packages (DEB), Windows installation packages (MSI), DMG, RPM, and so on.
Add the following line to your build.sbt
file.
retrieveManaged := true
This will gather the dependencies locally
Try sbt-pack plugin https://github.com/xerial/sbt-pack, which collects all dependent jars in target/pack folder and also generates launch scripts.
The SBT docs have a list of "One Jar Plugins":
- sbt-assembly: https://github.com/sbt/sbt-assembly
- xsbt-proguard-plugin: https://github.com/adamw/xsbt-proguard-plugin
- sbt-deploy: https://github.com/reaktor/sbt-deploy
- sbt-appbundle (os x standalone): https://github.com/sbt/sbt-appbundle
- sbt-onejar (Packages your project using One-JAR™): https://github.com/sbt/sbt-onejar