title: Compiling Java annotations with sbt
body: <p>I've created Java annotations (since I need run time retention) under <code>$PROJECT/src/main/java</code> and my scala codewhich uses these java annotations us under <code>$PROJECT/src/main/scala</code>. The Java annotation thus created also makes use of a Java ENUM as it's value.</p>
  
  <p>If I compile the project then sbt doesn't seem to compile the Java annotations first and errors out on each usage of the  enum in annotations. If I comment out all usages of the Java enum in annotations in scala code and do a compile, uncomment enum usage and compile again it all works fine.</p>
  
  <p>How do I ensure that sbt compiles my java annotations and enum (i.e. <code>$PROJECT/src/main/java</code>) before attempting to compile scala code when doing a clean build?</p>
  
  <p>EDIT: I have a bare bones build.sbt and am using sbt 0.11.2</p>