So it is possible to turn this off with:
compileJava { options.compilerArgs << '-AaddGeneratedAnnotation=false' }
but that’s pretty ugly.