gradle-doctor
gradle-doctor copied to clipboard
Add check for deps that don't support incremental kapt
Not sure if it'd be possible, but would be cool to add.
Hey, thanks for the request @ColtonIdle! By default, the gradle doctor enables kapt processor timing which will print out whether annotation processors support incremental annotation processing. Here's a sample line that you should see in your console output when this happens:
w: [kapt] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: androidx.room.RoomProcessor (DYNAMIC).
Cool. I just looked in your readme and saw nothing about it, so I just added my thought.
noob question. How do I run this once its setup?
./gradlew doctor
or does it just run now as a gradle task as part of some other task (not sure if that's the correct way of saying. I'm a gradle noob)
Good question. The plugin is quite opinionated! It will give you suggestions as you run tasks in your project. The only feature that requires you to turn on explicitly is the benchmarking remote build cache feature. You can do this with the flag -PbenchmarkRemoteCache
. Check the README for more info.
Got it.
So the advice is basically, install gradle-doctor, then start running, building, developing your app and keep your eye out for any warnings?
You got it! Any feedback is welcome!
I think it would be cool to just run something like ./gradlew doctor
and get an output of everything so I can try to address it in one fell swoop. I'm assuming this likely isn't possible or else you would have done this already. That's what I thought the tool was though. 😄