Skip to content

Commit f6121ed

Browse files
committed
Packaging
1 parent 42c0abc commit f6121ed

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

build.sbt

+7
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ version := "0.1"
55
scalaVersion := "2.13.3"
66

77
libraryDependencies ++= Deps.gui
8+
9+
enablePlugins(JavaAppPackaging, GraalVMNativeImagePlugin)
10+
11+
assemblyMergeStrategy in assembly := {
12+
case PathList("META-INF", _ @ _*) => MergeStrategy.discard
13+
case _ => MergeStrategy.first
14+
}

project/plugins.sbt

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
// bundle up Scala applications into packaging formats such as Docker,
2+
// GraalVM native-image, executable JARs etc
3+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.7.3")
4+
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
5+
16
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0")

stub.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
MYSELF=`which "$0" 2>/dev/null`
3+
[ $? -gt 0 -a -f "$0" ] && MYSELF="./$0"
4+
java=java
5+
if test -n "$JAVA_HOME"; then
6+
java="$JAVA_HOME/bin/java"
7+
fi
8+
exec "$java" $java_args -jar $MYSELF "$@"
9+
exit 1
10+

0 commit comments

Comments
 (0)