Its a sbt plugin to assemble the application and generate start up scripts
Fork of https://github.com/jestan/sbt-app-assembler
Restructure and cleanup of the plugin.
sbt 0.13.x
Add the following lines to PROJECT_DIR/project/plugins.sbt
addSbtPlugin("net.hamnaberg.sbt" % "sbt-appassembler" % "0.5.1")
By default the plugin will detect all main classes and generate a script for it.
Inject plugin settings into project in build.sbt:
appAssemblerSettings
appAssemblerJvmOptions := Seq(
"-Xms1024M",
"-Xmx1024M",
"-Xss1M",
"-XX:MaxPermSize=256M",
"-XX:+UseParallelGC"
)
Use 'assemble' sbt task to create the application assembly
appPrograms := Seq(appassembly.Program("server", "com.example.Main"))