https://kotlinlang.org logo
#kapt
Title
# kapt
j

juliocbcotta

03/25/2019, 12:05 PM
Is it possible to have some kapt dependence declared as API? I have a module with some dagger scopes and I would like to avoid the boiler plate in all modules that depend of that module of declare dagger dependency again.
g

gildor

03/25/2019, 12:30 PM
No, it's not possible Also in general it wouldn't be a good idea, kapt plugin and kapt dependencies required only if module need annotation processing, but not every module requires AP, even if it has another module with AP in dependencies
j

juliocbcotta

03/25/2019, 3:26 PM
I have a module "di" with dagger custom scopes. Every module that depends of that module will need kapt for dagger ... That is my use case