to generate files in an annotation processor. At present,
FileSpec
generates the file in the same module as the class where the annotation is added. Is there a way to generate the file in a different module? For instance, I can pass the module name in the annotation parameter
Copy code
val fileSpec = FileSpec.builder(packageName, fakeClassName)
.addType(classBuilder.build())
.build()
fileSpec.writeTo(environment.codeGenerator, Dependencies(false))