One way to make the sbt-native-packager work with play is to add the following to your settings in Build.scala
val storeOpsServer = play.Project(
"storeops-server", appVersion, appDependencies, path = file("storeops-server")
).settings(
//Packaging for RPMs
name in Rpm := "my-server",
version in Rpm := appVersion,
rpmRelease := "0",
packageSummary := "Some summary of your software",
rpmVendor := "My Corporation",
rpmUrl := Some("http://www.mycorp.com"),
rpmLicense := Some("MIT"),
packageDescription := "Some description of what your server does",
rpmGroup := Some("Group")
).dependsOn(adapterApi)
You don't need all of the values above but these are the ones that I used and was successful with.
Here are the imports that were in the file
import com.typesafe.sbt.packager.linux.{LinuxPackageMapping, LinuxSymlink}
import com.typesafe.sbt.packager.rpm.RpmDependencies
import com.typesafe.sbteclipse.core._
import sbt._
import Keys._
import play.Project._
import com.typesafe.sbt.packager.Keys._
import com.typesafe.sbt.SbtNativePackager._