Since Dagger 2 supports incremental kapt, is there any benefit to using dagger-reflect?
n
Nicholas Doglio
03/29/2020, 7:43 PM
Anecdotally speaking dagger-reflect is still significantly faster for me than just incremental kapt. This however is just from my experience on using it on a few side projects I don't have any benchmarks to confirm this.
c
Colton Idle
03/30/2020, 3:16 PM
Good enough for me. May still give that a try then. Thanks for the anecdote.
👍 1
n
Nicholas Doglio
03/30/2020, 4:18 PM
I also use this plugin: https://github.com/soundcloud/delect
It automatically swaps dagger with dagger-reflect for local builds so you don't need to have a big if-else block in your
build.gradle
file
👍 3
g
gildor
03/30/2020, 5:12 PM
Even incrementally, there is a big overhead of annotation processing stepml
Also incremental kapt compilation is quite brittle (many things may break it up)
c
Colton Idle
03/30/2020, 11:02 PM
Interesting. I wonder if I should ask most of my annotation processor authors on github to see if they can build a reflect based artifact as well.