问题描述
我正在使用 或eclipse市场
安装新的编译器版本<小时>更新:通过帮助>安装新软件安装额外的编译器版本,选择Groovy更新站点并展开Extra Groovy Compilers
会话:
注意我使用的是快照更新站点,因为我 喜欢危险地生活.
I am using the newest version (2.8.0) of the Eclipse-Groovy plugin that ships with groovy-all-2.1.5.jar
. I added Guice to my Groovy project, and when I go to run them from inside Eclipse I get the following error in the console output:
According to this answer it's because ShortTypeHandling
wasn't added until 2.3.x. So I would now like to attach groovy-all-2.3.3.jar
to my Eclipse project's classpath.
The problem is that I don't seem to have edit permissions to change what library the Groovy Libraries
library uses under the hood. And when I manually add the 2.3.3 JAR to my build path, I get the following error:
What are my options?
Groovy-eclipse versions have its own compilers and are "locked" to them. You may change the versions to whatever is listed under Window > Preferences > Groovy > Compilers, but, AFAIK, you can't change to an arbitrary version of the compiler by simply changing the groovy-all
jar in the guts of the plugin dir.
You can install new compiler versions using the update site or eclipse marketplace
Update: install additional compiler versions through Help > Install new Software, select Groovy update site and expand the Extra Groovy Compilers
session:
Note i'm using snapshot update site, because i like to live dangerously.
这篇关于如何更改 Eclipse-Groovy 插件 Groovy 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!