Subhadip Nath
08/02/2024, 11:41 AMkotlinpoet.FileSpec
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
val fileSpec = FileSpec.builder(packageName, fakeClassName)
.addType(classBuilder.build())
.build()
fileSpec.writeTo(environment.codeGenerator, Dependencies(false))
mbonnin
08/02/2024, 11:52 AM