No, it doesn’t work that way. The annotations will be in a normal java/kotlin module, the processor will be in a separate, special module that depends on the module containing the annotations, and then modules using the processor will depend on the annotation module, apply the processor module with ksp, and have the generated code be created in their build module. So at least 3 different modules are involved