Is there any global flag for Groovy static compilation?

Viewed 2673

I know that since Groovy 2.0 there are annotations for static compilation. However it's ease to omit such annotation by accident and still run into troubles.

Is there any way to achieve the opposite compiler behaviour, like compile static all project files by default and compile dynamic only files chosen by purpose with some kind @CompileDynamic annotation for example?

2 Answers
Related