Search code examples
playframeworksbtsbt-native-packager

In Play Framework, how to exclude files when packaging?


I am using Play 2.5.

When I run sbt package, the routes, config and log config file will be included in the final package.

How can I manage which file to include?


Solution

  • Can you explain what you are planning to achieve? I know that play does not allow you to remove the routes and confs file. There are plenty of approaches but I believe that the sbt native packager could be of help to you.

    You can check more here : http://www.scala-sbt.org/sbt-native-packager/formats/universal.html

    This allows you to modify your generated artifact.