@emmby, No, that is not possible. With maven, annotation compilers have to be invoked this way as the scope of the compiler must be provided, not be included in the final apk, and the library itself must have a compile scope as usual. I believe gradle will have the same mechanism. I find the compiler parameter much more clear than the package annotation to give the name of the package to the annotation database.