heroku/heroku-buildpack-scala — pull request #69 by ilorenz (2014-04-16 16:23:34+00:00)
Title: Post build slug ignore file processing implemented

Finally our team has came across the slug size "problem". It was a matter of time. We've realized that the .slugignore file is the "way to go" but as the documentation states "the .slugignore file causes files to be removed after you push code to Heroku and before the buildpack runs".

We've implemented a variation of the bin/compile file in order to activate post build .slugignore file processing, allowing file dropping (ex. jars from dependencies or any file matching the patterns in .slugignore) resulting in a smaller slug size.

It is needed to set the config variable POST_BUILD_SLUG_IGNORE to true and to create a .slugignore file on the root directory of your app, containing the file patterns you want to drop from slug.