Embed launch script in fat-jar (#98)
* [sbt] enable executable jar for shell * [sbt] rename assembled jar to not include file suffix
This commit is contained in:
parent
124c269322
commit
619424a416
1 changed files with 8 additions and 1 deletions
|
@ -60,13 +60,20 @@ lazy val thorp = (project in file("."))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
.aggregate(cli, `thorp-lib`, `storage-aws`, core, `storage-api`, domain)
|
.aggregate(cli, `thorp-lib`, `storage-aws`, core, `storage-api`, domain)
|
||||||
|
|
||||||
|
import sbtassembly.AssemblyPlugin.defaultShellScript
|
||||||
lazy val cli = (project in file("cli"))
|
lazy val cli = (project in file("cli"))
|
||||||
.settings(commonSettings)
|
.settings(commonSettings)
|
||||||
.settings(mainClass in assembly := Some("net.kemitix.thorp.cli.Main"))
|
.settings(mainClass in assembly := Some("net.kemitix.thorp.cli.Main"))
|
||||||
.settings(applicationSettings)
|
.settings(applicationSettings)
|
||||||
.settings(commandLineParsing)
|
.settings(commandLineParsing)
|
||||||
.settings(testDependencies)
|
.settings(testDependencies)
|
||||||
.settings(assemblyJarName in assembly := "thorp.jar")
|
.settings(Seq(
|
||||||
|
assemblyOption in assembly := (
|
||||||
|
assemblyOption in assembly).value
|
||||||
|
.copy(prependShellScript =
|
||||||
|
Some(defaultShellScript)),
|
||||||
|
assemblyJarName in assembly := "thorp"
|
||||||
|
))
|
||||||
.dependsOn(`thorp-lib`)
|
.dependsOn(`thorp-lib`)
|
||||||
|
|
||||||
lazy val `thorp-lib` = (project in file("thorp-lib"))
|
lazy val `thorp-lib` = (project in file("thorp-lib"))
|
||||||
|
|
Loading…
Reference in a new issue