How to remove scaladoc generation from Play 2.2.x Production dist
Jun 17, 2014

Olivier Girardot
After a few hours of searching through the Play 2 documentation, the play-framework google group and other blogs or sources, i finally found this piece of code that i decided to share with you. So if, like me, you wanted to remove the Scaladoc generation and packaging inside the ProductionDist that you can create from running the play dist command, then today's your lucky day. If you have a build.sbt file (and you should) in your Play2 app, then all you need to do is add inside your file **sources in doc in Compile := List()**like that : [code language="scala"] import play.Project._ name := "my-web-project" playScalaSettings sources in doc in Compile := List() libraryDependencies ++= Seq(...) [/code]