diff --git a/build.sbt b/build.sbt index 76c421cd..6ac15226 100644 --- a/build.sbt +++ b/build.sbt @@ -24,8 +24,10 @@ lazy val abandon = (project in file(".")). settings(commonSettings: _*). settings( name := "abandon", - fork in run := true + fork in run := true, + nativeImageOptions ++= List("--initialize-at-build-time", "--no-fallback", "-O2") ) + .enablePlugins(NativeImagePlugin) lazy val base = (project in file("base")). enablePlugins(BuildInfoPlugin). diff --git a/project/plugins.sbt b/project/plugins.sbt index 7acc7412..dd0aa2f5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0") +addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.1.2") + // addSbtPlugin("com.typesafe.sbt" % "sbt-proguard" % "0.2.2") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")