A minimal example of using SBT, native packaging and sub-projects. Builds are pretty straight forward:
# Compile and test everything
sbt test
# Run just the server
sbt server/run
# Run the client
sbt client/run
# Build Debian packages (requires fakeroot to be installed)
sbt debian:packageBin
The deb
files will be in client/target
and server/target
.
- SBT native packager documentation
- Multiproject packaging Stack Overflow answer