Tell SBT to collect all my dependencies together

318 views
Skip to first unread message

Andrew Browne

unread,
Apr 8, 2011, 5:02:15 AM4/8/11
to simple-build-tool
When building a web application SBT is able to collect all my jar
dependencies into the WAR file.

Is this possible to have SBT put all the jars I depend on in my non-
web application into a directory so I can easily put them onto my
class path when running the app?

nafg

unread,
Apr 10, 2011, 5:06:22 AM4/10/11
to simple-b...@googlegroups.com
You don't have to tell it---that's what it does all the time. It puts them in lib_managed/<scala version>/<dependency scope> 

Артем Ольшевский

unread,
Apr 13, 2011, 1:21:04 PM4/13/11
to simple-b...@googlegroups.com

Or you can use https://github.com/codahale/assembly-sbt to create an all in one jar for your project so it would require only java runtime to execute it.

For fine grained control on what's included into the resulting jar you could also use https://github.com/nuttycom/sbt-proguard-plugin .

Reply all
Reply to author
Forward
0 new messages