Groovy 2.0 introduces static type checking and compilingThe latest version of the dynamic language for the JVM introduces a static type checker and optional static compilation. It also includes syntax enhancements, improved modularity and makes use of JDK 7's invoke dynamic feature
Source:
Groovy 2.0 introduces static type checking and compiling