Adam Jarvis
09/17/2024, 7:27 PMmodule
is in kotlin (I'm still new to the language), but my question is;
Does ComponentScan
check sub packages for @Single
and the types?
I ask, because in my package structure of:
root/
├─ Module.kt
├─ application/
│ ├─ File.kt
├─ domain/
│ ├─ SomeFile.kt
Only Module.kt
has a class inside, that is annotated with @ComponentScan
And, in File.kt
and SomeFile.kt
I have multiple classes annotated with @Single
But when trying to compile (and with the ksp compile check on) it fails to import the typesKibet Theophilus
09/18/2024, 7:44 AM@ComponentScan
should check the sub-packages.
Can you please share the error you are getting or a repo to reproduce your setup?Adam Jarvis
09/18/2024, 9:01 PM@Single
wasn't being 'picked up'
Turns out, it was because the @Single
class was nested inside an object - seemingly doesn't work