Hello everyone, I am currently using `kotlinpoet.F...
# ksp
s
Hello everyone, I am currently using
kotlinpoet.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
Copy code
val fileSpec = FileSpec.builder(packageName, fakeClassName)
            .addType(classBuilder.build())
            .build()

fileSpec.writeTo(environment.codeGenerator, Dependencies(false))
m