Sunday, 15 February 2015

scala - How to exclude files under conf folder for distribution? -



scala - How to exclude files under conf folder for distribution? -

i have application.dev.conf , application.test.conf under conf folder in play 2.3 application not want packaged part of distribution? right excludefilter it?

you utilize mappings exclude both files.

mappings in universal := { val origmappings = (mappings in universal).value origmappings.filternot { case (_, file) => file.endswith("application.dev.conf") || file.endswith("application.test.conf") } }

scala sbt playframework-2.3

No comments:

Post a Comment