Just use Gradle root config and apply to all proje...
# kapt
g
Just use Gradle root config and apply to all projects
e
Do you mean something like this?
Copy code
allProjects {
  apply plugin: 'kotlin-kapt'

  dependencies {
    kapt "<dependency>"
  }
}
g
Yes
Also, you can add dependencies to all projects with applied kapt (withPlugin method of Project)
e
I'm not sure I understand. Can you show me a sample?
g
Gradle allows to apply some config to any project with specific plugin using withPlugin API, so for example if you applied kapt to a project you can also add dependencies for dagger
e
Ah I see. TIL. I'll research the withPlugin API
Thank you