title: shared folder in play 2.0
body: <p>In a play 2.0 application, I need an additional source folder (a shared folder that I can reuse in other projects) beside the "app" folder.</p>
  
  <p>So I created the folder in the root directory and added those lines to the the Build.scala file:</p>
  
  <pre><code>sourceDirectory in Compile &lt;&lt;= baseDirectory / "shared"
  javaSource in Compile &lt;&lt;= baseDirectory / "shared"
  </code></pre>
  
  <p>Without any effect, I'm still getting a compilation error: "package foo.bar does not exist".</p>
  
  <p>The next thing I tried is creating a module for the shared folder:</p>
  
  <pre><code>val sharedFolder = Project("shared", file("modules/shared"))
  val main = PlayProject(appName, appVersion, appDependencies, mainLang = JAVA).settings(
      ebeanEnabled := false).dependsOn(sharedFolder)
  </code></pre>
  
  <p>That works, except in this case the appDependencies are not available in the module, so I still get compile errors. Any ideas how I can fix the dependencies for the module or add an additional source folder to my main project?</p>