0

Any distribution example for Akka application using SBT and sbt-native-packager? I managed to use akka-sbt-plugin to package the entire application into a runnable server for distribution. Now, I am struggling to do the same with this plugin because akka-sbt-plugin is been replaced by sbt-native-packager. Thanks

thlim
  • 2,908
  • 3
  • 34
  • 57

1 Answers1

1

Here is an example https://gist.github.com/tobym/3665514fde79eaab8724

Basically, just include addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.8.0-M1") in project/plugins.sbt, and in build.sbt import com.typesafe.sbt.SbtNativePackager._ and NativePackagerKeys._.

Then run rpm:packageBin (or another option, such as debian...this depends on your deploy target) and fill in the missing settings in build.sbt until it works. For rpm, you'll need to have the rpm tools available. On mac, you can get this with sudo port install rpm.

tobym
  • 1,354
  • 1
  • 10
  • 11
  • Thanks. I use version 1.0.0M4 with sbt 0.13.5 so this may not apply directly and I have that figured out. – thlim Jan 15 '15 at 02:56