How to use Groovy 2.0 in netbeans

后端 未结 2 1638
后悔当初
后悔当初 2021-01-26 08:43

I want to use groovy 2.0 in Netbeans 7.1.2 because I want to use the static type checking.

By default that Netbeans uses the library Groovy 1.6.4 - groovy-a

2条回答
  •  长情又很酷
    2021-01-26 09:42

    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.

    Test it executing :

    println GroovySystem.getVersion()
    

提交回复
热议问题