I have a project in Scala where I build a fat-jar using sbt-assembly plugin. The artifact is configured and added like this:
sbt-assembly
artifact in (Compile