Building and packaging
Syntax#
- activator dist
Add a directory to the distribution
To add for instance a directory scripts
to the distribution package:
-
Add to the project a folder scripts
-
On top of the build.sbt, add:
import NativePackagerHelper._
-
In build.sbt, add a mapping to the new directory:
mappings in Universal ++= directory("scripts")
-
Build the distribution package with activator dist. The newly created archive in
target/universal/
should contain the new directory.