It's in the docs: http://docs.groovy-lang.org/latest/html/documentation/#_static_compilation_by_default
2016-06-21 14:24 GMT+02:00 Mr Andersson <[email protected]>: > Is it possible to enable CompileStatic for an entire project? > > Or do you have to do it on a per class basis? > > I like Groovy for some of it's features, and mostly for it's close to Java > syntax but I would really like it to be a static language. > > I've heard about Groovy++ but I believe that's dead by now, no? > > Question is wether you can tell the Groovy compiler with a flag to treat > all Groovy classes on certain paths as static? > > Preferable doable from ANT too. > > >
