Hi, I'm migrating from the Koin KSP plugin to the ...
# koin
e
Hi, I'm migrating from the Koin KSP plugin to the compiler plugin and can't seem to get the compile-time safety working for my use case. My application uses a mix of DSL-based modules and annotation-based modules, where the annotation-based modules depend on the DSL-based ones. I can't find any way to tell Koin that an annotation-based module is dependent on a DSL-based module, so they fail A2 validation. Is there any way around this? I would also settle for being able to selectively disable A2 validation for certain modules.
👀 1
a
for now as you mixed both, you need to disable compile safety. I'm looking at helping bridging both side for compile safety. Any special case here? 🤔
e
Thanks that would be great. No special case, really, just using DSL for core dependencies and annotations for domain-level dependencies.
a
with 1.0.0, you can use Annotations + DSL to complete
e
Hi @arnaud.giuliani, I'm not sure what 1.0.0 does to fix this problem, I'm still having the same experience with 1.0.0 (and now 1.0.1 too). I can't specify that an annotation-based module is dependent on a DSL-based one, so A2 validation raises false positive "missing dependency" errors for all those dependencies.
a
Annotations to DSL you can't yes. You can have annotations modules, and then DSL ones. In that way it can works.
for now, we still need to look at cases to mix Annotations & DSL