How to exclude resources during packaging with SBT but not during testing

Viewed 6872

I have a bunch of conf files in a project structure like this:

```

src / main / resources / live.conf
src / test / resources / test.conf

```

I want to excluded live.conf from the artifact that is build when I run sbt one-jar (using the one-jar plugin). I added this line which unfortunately also excludes test.conf when running sbt test:compile

excludeFilter in Runtime in unmanagedResources := "*.conf"

How can I exclude live.conf in the artifact jar but not for the tests?

1 Answers
Related