I want to use groovy 2.0 in Netbeans 7.1.2 because I want to use the static type checking.
groovy 2.0 in Netbeans 7.1.2
By default that Netbeans uses the library Groovy 1.6.4 - groovy-a
Just replace the netbeans-7.2.1/groovy/modules/ext/groovy-all.jar for the new one, but respecting the name groovy-all.jar, and the compilations will be done using groovy 2.
netbeans-7.2.1/groovy/modules/ext/groovy-all.jar
groovy-all.jar
Test it executing :
println GroovySystem.getVersion()