Manuel Bernhardt
Manuel Bernhardt

Reputation: 3144

Customizing SBT packaging

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.

Upvotes: 3

Views: 258

Answers (1)

Eugene Yokota
Eugene Yokota

Reputation: 95604

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

unmanagedResourceDirectories in Compile <+= (baseDirectory) { (dir) => dir / "foo" }

Upvotes: 3

Related Questions