Annotation processing output

I have some code with custom annotations and an annotation processor to deal with the annotations. For the most part, this all automatically works except that the output goes to ${buildDir}/classes. I would prefer that the output end up in ${buildDir}/generated-sources/annotations but I can’t figure out how to get that to happen.

Any suggestions would be appreciated.

Never mind…I finally worked it out.