Napt
Installation
# Top-level build.gradle
buildscript {
dependencies {
classpath "com.github.pavel-vasilev:napt-gradle-plugin:1.0.1"
}
repositories {
mavenCentral()
}
}
subprojects {
repositories {
mavenCentral()
}
}
Before
# Module-level build.gradle
apply plugin: "kotlin-kapt"
dependencies {
kapt "com.google.dagger:dagger:2.29"
}
After
# Module-level build.gradle
apply plugin: "napt"
dependencies {
annotationProcessor "com.google.dagger:dagger:2.29"
}