is it possible to use KSP side by side with KAPT f...
# ksp
m
is it possible to use KSP side by side with KAPT for now? e.g: 1. Glide will use KSP 2. others still use KAPT (at least for library that still not supported using KSP) if there’s a similar question for this, maybe anyone can refers me which thread (I’m unable to find the right keyword search for this)
e
Yes
👌 2
m
is there any example? I cannot find it in readme 🙏
z
you don't need an example - it just works. It does not require extra configuration, just apply both plugins as you need to. That said - you're just making your build slower and if you have a KSP processor that works in kapt too, you're better off just using the kapt version only
One caveat is that there is no ordering guarantee either. They may even run in parallel
m
Some obvious limitations that stood out to me early on:
Based on your articles here, concluded that nows (yet?) still not the right time to use it in productions?
and also:
We did this with Moshi some time back
so the plugins/library maintainer have to publish a
ksp
supported or we ended up experiencing this instead?
That said - you’re just making your build slower and if you have a KSP processor that works in kapt too, you’re better off just using the kapt version only
z
KSP isn't stable, use at your own risk
moshi doesn't have a first-party ksp implementation yet. I have one in https://github.com/zacsweers/moshix, but use at your own risk for the same reasons
👍 1
sidenote: blogpost authors don't normally go back and update old posts. That post is accurate only to the time of writing
🙏 1
if you have a production project and/or use kapt for anything else in it, I would suggest sticking with moshi's annotation processor
m
great, thanks a lot @Zac Sweers for the guidance