I cloned the issue to try to find a suitable test. There is now an extra guard which should prevent the problem in case I envisage.
java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface groovy.transform.Generated: @groovy.transform.Generated()
On a class with a field declared with @Delegate
Removing @Delegate works around the problem