Skip to content

Instantly share code, notes, and snippets.

@albodelu
Forked from koral--/build.gradle
Created July 21, 2017 01:35
Show Gist options
  • Save albodelu/2cb0cc55f0bd8fb797f42901e0b23f78 to your computer and use it in GitHub Desktop.
Save albodelu/2cb0cc55f0bd8fb797f42901e0b23f78 to your computer and use it in GitHub Desktop.
testApt to testAnnotationProcessor migration, workaround for issue: https://code.google.com/p/android/issues/detail?id=224272
android.applicationVariants.all {
def aptOutputDir = new File(buildDir, "generated/source/apt/${it.unitTestVariant.dirName}")
it.unitTestVariant.addJavaSourceFoldersToModel(aptOutputDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment