简体   繁体   English

适用于Eclipse的Groovy版本2.4.2

[英]Groovy version 2.4.2 for Eclipse

How can I make a groovy project in eclipse use a custom Groovy Library? 如何在eclipse中创建一个groovy项目使用自定义Groovy库?

I'm new to Groovy and I'm confused as to how to use it in Eclipse. 我是Groovy的新手,我对如何在Eclipse中使用它感到困惑。

I installed the Groovy Plugin to Eclipse, every time I make a project, the Groovy library used is version 2.3.7. 我将Groovy插件安装到Eclipse,每次创建项目时,使用的Groovy库是版本2.3.7。

I downloaded the Groovy SDK version 2.4.2 and want to use it with my eclipse, however I can't seem to do it as when I try to add a new Groovy library, nothing happens. 我下载了Groovy SDK版本2.4.2并希望将它与我的eclipse一起使用,但是当我尝试添加新的Groovy库时,我似乎无法做到这一点,没有任何反应。

The Groovy-plugin for Eclipse comes with it's own Groovy-compilers. Eclipse的Groovy-plugin附带了它自己的Groovy编译器。 It is not possible to add your own groovy compilers. 无法添加自己的常规编译器。

Version 2.9.1 of the groovy-eclipse plugin does not have the 2.4.x compiler included. groovy-eclipse插件的2.9.1版本没有包含2.4.x编译器。 In Version 2.9.2 the compiler 2.4.x is included. 在版本2.9.2中包含了编译器2.4.x. In Order to install it, use the update-site http://dist.springsource.org/snapshot/GRECLIPSE/e4.4/ . 要安装它,请使用更新站点http://dist.springsource.org/snapshot/GRECLIPSE/e4.4/ I tried it, and in it works (there has been a bugfix: https://github.com/groovy/groovy-eclipse/issues/112 ) 我试了一下,并在其中工作(有一个错误修正: https//github.com/groovy/groovy-eclipse/issues/112

I am using Version: Neon.3 Release (4.6.3) and installed the plugin from http://dist.springsource.org/snapshot/GRECLIPSE/e4.8 我正在使用Version:Neon.3 Release(4.6.3)并安装了http://dist.springsource.org/snapshot/GRECLIPSE/e4.8的插件

The version of groovy I installed is 2.5.4 我安装的groovy版本是2.5.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM