I was wondering if there is a way to configure Micronaut to support
this?
In currently existing versions of Micronaut, there isn't.
The classes in question don't have source files, not directly anyway. Annotation processors in Micronaut create classes to support other classes which live in the project which do have source files. It is conceivable that the annotation processors could reference the original source files in the generated .class files but offhand I am not sure what the implications of doing so would be. You are welcome to open an enhancement request at https://github.com/micronaut-projects/micronaut-core/issues.