CompileConfig for the groovy compiler

Hi

Is it possible to specify a CompileConfig option when compiling groovy code? I would like to add CompileStatic annotations to source files with an AST transformation.

i.e.

withConfig(configuration){

source(extensions: [‘sgroovy’,‘sg’]) {

ast(CompileStatic)

} }

Thanks in advance

Brian

Groovy’s compiler configuration API isn’t currently supported. I’m pretty sure there is a JIRA for it, though.