Is there a way to force serialization to use `ksp`...
# serialization
d
Is there a way to force serialization to use
ksp
instead of
kapt
? I have a module that usess
ksp
only and fails after adding
kapt
j
serialization doesn't use ksp or kapt
it has its own compiler plugin which probably should be faster than ksp and kapt
d
Hmmm... Then any ideas why after adding
kapt
to the module I’m getting
Copy code
The root cause java.lang.IllegalArgumentException was thrown at: org.jetbrains.kotlinx.serialization.compiler.backend.jvm.SerializerCodegenImpl.addSyntheticAnnotationsToDescriptor(SerializerCodegenImpl.kt:122)
I think this is an issue with
kapt
https://youtrack.jetbrains.com/issue/KT-30346
j
But you are adding kapt to serialize?
you do not need it
d
no, adding kapt to use Hilt in this module
looks like I need to move all serialized models into a separate module until this is fixed
j
looks like a bug
yeah that is a good workaround
d
it should have good impact on the build time as well
262 Views