CompileConfig for the groovy compiler


(Brian Blignaut) #1

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


(Peter Niederwieser) #2

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