Skip to content

Commit 6fc9c57

Browse files
committed
chore: Setup GraalVM native compile
1 parent 25cdb7d commit 6fc9c57

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

build.sbt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import sbt.Keys._
2-
import sbtassembly.MergeStrategy
3-
import sbtassembly.PathList
42

53
ThisBuild / version := "0.1.0-SNAPSHOT"
64
ThisBuild / scalaVersion := "2.13.12"
@@ -11,18 +9,14 @@ lazy val commonSettings = Seq(
119
)
1210

1311
lazy val root = (project in file("."))
12+
.enablePlugins(GraalVMNativeImagePlugin)
1413
.settings(
1514
name := "jindo",
1615
commonSettings,
1716
libraryDependencies ++= Seq(
1817
"io.circe" %% "circe-yaml" % "0.14.2",
1918
"io.circe" %% "circe-generic" % "0.14.2",
2019
"io.get-coursier" %% "coursier" % "2.1.7",
21-
"com.github.scopt" %% "scopt" % "4.1.0",
22-
),
23-
assembly / assemblyJarName := "jindo.jar",
24-
assembly / assemblyMergeStrategy := {
25-
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
26-
case _ => MergeStrategy.first
27-
}
20+
"com.github.scopt" %% "scopt" % "4.1.0"
21+
)
2822
)

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
2-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")
2+
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.10.0")

0 commit comments

Comments
 (0)