title: How do I get sbt to not try to compile a directory whose name ends in .scala as a Scala source file?
body: <p>I am trying to convert an existing <strong>Maven</strong> multi-module project over to use <strong>sbt</strong> instead. One of the module subdirectories has <code>.scala</code> at the end of its name (because it's a pure Scala implementation of a library that was originally written in Java). <strong>Maven</strong> had no problem with this. However, <strong>sbt</strong> sees the <code>.scala</code> and thinks that the directory is a Scala source file and tries to compile it, which fails, of course.</p>
  
  <p>How can I configure <strong>sbt</strong> so that it doesn't try to compile a directory as a source file? Note that the top-level (root) project doesn't contain any source code itself, so disabling compilation altogether at that level would be an acceptable solution (as long as it doesn't prevent the submodules from being compiled).</p>
  
  <p>Yes, I have considered simply renaming the submodule directory so that it doesn't contain <code>.scala</code>, but I would prefer to avoid restructuring my build tree if possible.</p>