How to compile and use a Play Framework 2 module with the source from github

Posted by Brian Porter on June 19, 2013

Screen Shot 2013-06-19 at 16.30.25Have you ever wanted to download the source of a Play Framework 2.0 module off of github and modify the source and test it?  Or have you expected it to be in some repository but for one reason or another it wasn’t there?

I have found myself in this situation a few time recently and had to piece this together…

  1. Download the code from github (or where ever) – of course you can fork it, or check it out with git, but you can also just download the ZIP file
  2. Switch to the module directory and run play clean , then play publish-local

Once you have done this, it is in you local repository, so you can remove the repository from your Build.scala if you added one.

Just remember that it is in your local repository so you will need to remove it if you want to revert back to a Version from the repository in the internet!

If you made it this far, you may as well follow me on LinkedIn: Follow Brian Porter