Skip to content

sbt plugin to assemble the application and generate start up scripts

Notifications You must be signed in to change notification settings

hamnis/sbt-app-assembler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is sbt-app-assembler

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.

Requirements

sbt 0.13.x

Installation

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"
)

Usage

Use 'assemble' sbt task to create the application assembly

Overriding the programs generated

appPrograms := Seq(appassembly.Program("server", "com.example.Main"))

About

sbt plugin to assemble the application and generate start up scripts

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 99.1%
  • Shell 0.9%