I created Java annotations (since I need to save runtime) under $PROJECT/src/main/java
, and my scala codewh uses these java us annotations under $PROJECT/src/main/scala
. The Java annotation thus created also uses the Java ENUM value as the value.
If I compile the project, then sbt doesn't seem to compile Java annotations and errors every time the enum is used in the annotation. If I comment on all applications of Java enumeration in annotations in scala code and do compilation, using uncomment enum and compiling again, everything works fine.
How can I guarantee that sbt compiles my java annotations and enumeration (i.e. $PROJECT/src/main/java
) before trying to compile scala code when doing a clean build?
EDIT: I have bare bones build.sbt and I use sbt 0.11.2
source share