groovy/groovy-core — pull request #346 by jimwhite (2014-03-09 02:50:14+00:00)
Title: Implement GROOVY-6615: Configured base scripts support custom body methods like @BaseScript does.

This is a first cut. I'm not sure the best way to implement this, but reusing the ASTTransform seems like a fair idea. At first I thought needing to allow the annotation on classes was a hack, but I kinda like it now. It shouldn't do any harm.