I use package
task (from xsbt-web-plugin) to package a project to a war, and assembly
task (from sbt-assembly) to package the project to a jar.
I have a multi-module build and some modules are packaged into wars and some into jars.
I'd like to set up the build to execute assembly
task and:
- Jar modules are packaged into jar files
- War modules are packaged into war files
How to execute package
task for the war projects while executing assembly
task?
Both
package
task andassembly
task evaluate toFile
type, so as @James commented you should be able to rewireassembly
task in webapp project to runpackage
instead.