In order to prevent intellij from complaining:
- Right click on
main/src/main
module->
Open Module Settings->
Add->
Module Dependency->
selectcom.github.fburato.codege.generated
- Also, mark in the codegen module the
build/generated/src/java
directory as source directory