tl;dr: I cannot configure IntelliJ to generate the java files in the same directory as gradle
I have a small project which uses the immutables annot
gradle compileJava
And project should find all annotation and generated source file. Hope it helps.