I have a multi-module setup and i am configuring a...
# gradle
s
I have a multi-module setup and i am configuring all the modules to use 
fastInit
 like this:
Copy code
kapt {
    javacOptions {
        option("-Adagger.fastInit=enabled")
    }
}
I see some warnings that don’t feel clear to me, does anyone know what could trigger such warnings?
Copy code
warning: The following options were not recognized by any processor: '[dagger.fastInit, kapt.kotlin.generated]'
The following options were not recognized by any processor: '[dagger.fastInit, kapt.kotlin.generated]'
These warnings only affect very few modules
v
The warnings are pretty clear, aren't they? You specify annotation processor options without using any annotation processor that supports them. This usually is a sing of error, because why should you specify an option that noone is using. But it could also be valid by just setting the option everywhere but only using the annotation processor sometimes, so it is a warning, not an error.
If you want to get rid of the warnings, only set the options where you also have the annotation processor in place
s
in this case
fastInit
is intended to be used by dagger as an optimization, all the modules make use of dagger, which makes it more confusing because some complain, but most do not
v
Well, then you should probably really investigate why the annotation processor seems not to be working, that's exactly why the warning is there 🙂
s
i got my work cut out for me 😅
after doing some digging, i realized those modules enabled dagger but didn’t actually use any dagger annotations, disabled dagger and the compile options and things are all good, thanks for your great detailed explanation, makes total sense now 🙏 😃
v
yw
504 Views