Project contains annotation processor which generates java code during compilation. By default, gradle outputs generated source files into build/classes directory.
build/classes
Simply specify value for project.buildDir property in your build.gradle file:
project.buildDir = '/gen/main/java'
This will put all generated build files to the /gen/main/java folder.
/gen/main/java