Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing SBT packaging

Tags:

scala

sbt

I have a project which contains resources (template files) in a specific location (not /src/resources). I'd like those resources to be packaged along when I run package-bin.

I saw the package-options and package-configuration keys, but can't figure out whether I could use those in order to influence the packaging.

like image 554
Manuel Bernhardt Avatar asked Jan 20 '26 12:01

Manuel Bernhardt


1 Answers

Here's one way to add additional dir as resource:

unmanagedResourceDirectories in Compile <+= (baseDirectory) { (dir) => dir / "foo" }
like image 174
Eugene Yokota Avatar answered Jan 22 '26 08:01

Eugene Yokota