Skip to content

Commit

Permalink
Stop making the assembly jar executable (closes #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemirenes committed Sep 13, 2017
1 parent 12dc3b8 commit 54a59b3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,7 @@ object BuildSettings {
// sbt-assembly settings for building a fat jar
import sbtassembly.AssemblyPlugin.autoImport._
lazy val sbtAssemblySettings = Seq(
// Executable jarfile
assemblyOption in assembly :=
(assemblyOption in assembly).value.copy(prependShellScript = Some(
Seq("#!/usr/bin/env sh", """exec java -jar "$0" "$@"""" + "\n")
)),
// Name it as an executable
assemblyJarName in assembly := { s"${name.value}-${version.value}" },
assemblyJarName in assembly := { s"${name.value}-${version.value}.jar" },

assemblyMergeStrategy in assembly := {
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
Expand Down

0 comments on commit 54a59b3

Please sign in to comment.