package com.earldouglas.xwp

import sbt._, Keys._

object WarPlugin extends AutoPlugin {
  import Keys.{`package` => pkg}

  override def requires = WebappPlugin

  override def trigger = allRequirements

  override lazy val projectSettings =
    Defaults.packageTaskSettings(pkg, WebappPlugin.autoImport.webappPrepare) ++
      Seq(artifact in pkg := Artifact(moduleName.value, "war", "war")) ++
      addArtifact(artifact in (Compile, pkg), pkg in Compile)

}

package com.earldouglas.xwp

import sbt._, Keys._

object WarPlugin extends AutoPlugin {
  import Keys.{`package` => pkg}

  override def requires = WebappPlugin

  override def trigger = allRequirements

  override lazy val projectSettings =
    Defaults.packageTaskSettings(pkg, WebappPlugin.autoImport.webappPrepare) ++
      Seq(artifact in pkg := Artifact(moduleName.value, "war", "war"))
}

--- 
+++ 
@@ -11,5 +11,7 @@
 
   override lazy val projectSettings =
     Defaults.packageTaskSettings(pkg, WebappPlugin.autoImport.webappPrepare) ++
-      Seq(artifact in pkg := Artifact(moduleName.value, "war", "war"))
+      Seq(artifact in pkg := Artifact(moduleName.value, "war", "war")) ++
+      addArtifact(artifact in (Compile, pkg), pkg in Compile)
+
 }
Add the .war file to what gets published

Fixes #270
