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

前端 未结 1 1469
再見小時候
再見小時候 2020-12-03 04:01

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

```

src / main / resources / live.conf
src / test / resources / test.conf
相关标签:
1条回答
  • 2020-12-03 04:32

    This should help:

    mappings in (Compile, packageBin) ~= { _.filter(!_._1.getName.endsWith(".conf")) }
    

    packageBin is a task which produces your jar artifact and mappings denotes files wich are used for compilation and project packaging in Compile scope

    0 讨论(0)
提交回复
热议问题