2

I'm quite new to Scala and sbt and would like to create a fat jar files which includes all the dependency libraries. It looks like the original sbt does not do that and I have to user something like sbt-assembly. However I can't quite figure out how should I install and use it. Can someone elaborate on it for me?

1 Answer 1

3

Drop this into project/plugins.sbt

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")

That should let you run sbt assembly now. Then you can solve merge conflicts in your build.sbt or Build.scala.

2
  • but where is this project/plugins.sbt?
    – HHH
    Commented Jul 23, 2015 at 22:56
  • You can create a new <project-home>/project/plugins.sbt file, if there does not yet exist one. Commented Jul 24, 2015 at 7:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.