This is a work in process project. The goal is to be able to bundle up Scala software built with SBT for native packaging systems, like deb, rpm, homebrew, msi.
- Discussion/Questions:
If you wish to ask questions about the native packager, we're very active on Stack Overflow. You can either use the
sbt
tag or thesbt-native-packager
tag. They also have far better search support for working around issues. - Docs:
Our docs are available online. If you'd like to help improve the docs, they're part of this repository in the
src/sphinx
directory. - Issues/Feature Requests: Finally, any bugs or features you find you need, please report to our issue tracker. Please check the compatibility matrix to see if your system is able to produce the packages you want.
Add the following to your project/plugins.sbt
file:
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "0.7.1")
For the native packager keys add this to your build.sbt
import com.typesafe.sbt.SbtNativePackager._
import NativePackagerKeys._
Native packager now provides experimental systemd
startup scripts.
Currently it works on Fedora Fedora release 20 (Heisenbug)
and doesn't work on Ubuntu because of partial systemd
support in Ubuntu 14.04 LTS
.
To enable this feature follow My First Packaged Server Project guide and use Systemd
as server loader:
import com.typesafe.sbt.packager.archetypes.ServerLoader.Systemd
serverLoading in Rpm := Systemd
Any help on testing and improving this feature is appreciated so feel free to report bugs or making PR.
There's a complete "getting started" guide and more detailed topics available at the sbt-native-packager site.
Please feel free to contribute documentation, or raise issues where you feel it may be lacking.