Hi, we recently upgrade to K2 and also moved from ...
# ksp
p
Hi, we recently upgrade to K2 and also moved from kapt to ksp for dagger. Even with a one line change as simple as adding a
Log
, both the
kaptKotlin
and
kspKotlin
are running which takes around 2 mins. When I compared this with before all the changes the build is almost instant
m
I think if the change is in the file considered input to dagger ksp processor then the whole dagger generation must run from scratch due to the aggregated nature of the processor. There might also be a bug. Some time ago I reported a bug where basically too many files were considered a dagger ksp input. But that got fixed in 2.55 https://github.com/google/dagger/issues/4549 And yes, dagger is very slow especially on ksp2, I see ksp task being 2x slower on KSP2 vs KSP1, for now we set
useKSP2=false
in gradle.properties