32

Is there a way to use kapt for the androidtest scope? Currently I am migrating from com.neenbedankt.gradle.plugins android-apt to kapt - which works fine - but I am not sure how to do it for the androidTest scope - so replacing:

apt "com.github.hotchemi:permissionsdispatcher-processor:$permissiondispatcher_version"
apt "com.google.dagger:dagger-compiler:$dagger_version"

with

kapt "com.github.hotchemi:permissionsdispatcher-processor:$permissiondispatcher_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"

works fine - but I found no way to migrate:

androidTestApt "com.google.dagger:dagger-compiler:$dagger_version"
Kirill Rakhman
  • 42,195
  • 18
  • 124
  • 148
ligi
  • 39,001
  • 44
  • 144
  • 244

1 Answers1

65

As described in the documentation, it's kaptAndroidTest (and kaptTest for unit tests).

Kirill Rakhman
  • 42,195
  • 18
  • 124
  • 148