Hi yall, I have a chicken and egg problem. I have ...
# squarelibraries
b
Hi yall, I have a chicken and egg problem. I have custom kapt, annotations, generators etc. They make sq files 🙂. But seems like in gradle, this task runs last, and sqlDelight will have generated what it found. I already changed the srcDirs. I tried to place kapt task before Delight (by dependsOn or finalizedBy) and this leads to circular dependancies. Is there anyone solved this yet or experienced such?
I tried some ai solutions hehe, its always a goose chase and gotchas, its been 2 days now xD
e
Would moving your custom codegen along with the generated sq files to a separate module, and making it a dependency of the module that runs SQLDelight, work? I think you should be able to connect the source sets so that SQLDelight finds those generated files.
b
It worked but partially, before I started making my code generator use sq generated classes. But I'll stick to sq files and see how it goes