I use sbt 0.13.5 to build a project with a few config files meant to be human-edited after deployment.
Using sbt-native-packager's stage
command builds my basic output directory structure for deployment. This results in a bin
folder with a start script and all my jars in a lib
folder. Great.
That just leaves the text config files that should be copied into a conf
folder verbatim alonside the bin/
and lib/
folders (not included in any jar).
How can I copy these configuration files to the output directory on the filesystem (not into any jars) using sbt?
Default Universal convention is to copy files/directories under src/univeral/. So, to include a conf/ directory in the distribution, just add src/universal/conf and copy configuration files there. Credit: this link