title: Difference between scalaSource and sourceDirectories in sbt
body: <p>What is the difference between <code>scalaSource</code> and <code>sourceDirectories</code>? I have a non-standard directory structure where source code lives in <code>src/</code>, </p>
  
  <p>This line works in <code>build.sbt</code>:</p>
  
  <p><code>scalaSource in Compile := file("src/")</code> </p>
  
  <p>but not</p>
  
  <p><code>sourceDirectories in Compile := Seq(file("src/"))</code></p>