http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Plugin
http://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+Project
Groovy-Eclipse is the set of Eclipse plugins that provide Eclipse support for Groovy projects.
Installation
The latest Groovy-Eclipse release is available from the following Eclipse update sites. To install, point your Eclipse update manager to the update site appropriate for your Eclipse version or drag and drop the marketplace icon into your Eclipse installation.
Eclipse level | Release update site |
---|---|
4.4 (Luna) |
|
4.3 (Kepler) |
|
4.2 and 3.8 (Juno) |
|
3.7 (Indigo) |
|
Or, you can choose to install a development build, see below for more update sites. In general, our development builds are quite stable.
QUICK FACTS FOR ECLIPSE EXPERTS |
|
|
http://dist.springsource.org/release/GRECLIPSE/e4.2/ |
|
http://dist.springsource.org/release/GRECLIPSE/e3.7/ |
|
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.6/ |
|
http://dist.springsource.org/milestone/GRECLIPSE/e3.5/ |
|
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/ |
|
http://ci.repository.codehaus.org/greclipse/snapshot/e34/ |
|
available soon |
GETTING HELP – If you have problems, send a message to http://xircles.codehaus.org/lists/eclipse-plugin-user@groovy.codehaus.org.
Do |
See | |
---|---|---|
1 |
In Eclipse 3.5.x, click Help > Install New Software.
|
|
2 |
To add the GroovyEclipse plugin download site to your Available Software Sites, click Add on the Available Software page.
|
|
3 |
On the Add Site page, type a name in the Name box to assign a name of your preference to the site, or leave it blank to use a default site name constructed from repository metadata.
|
|
4 |
On the Available Software page, checkmark Groovy-Eclipse Plugin, and if you wish to work with the plugin sources, Groovy Eclipse SDK.
|
|
5 |
You can review the components to be installed on the Install Details page.
|
|
6 |
Accept the license agreement and click Finish. |
|
7 |
Eclipse prompts you to restart. |
|
8 |
After Eclipse restarts, you can see that Eclipse's File > New menu now includes wizards for creating Groovy projects, classes, and test cases. |
|
QUICK FACTS FOR EXPERIENCED ECLIPSE USERS |
NOTE: In this tutorial, the Groovy-Eclipse plugin is running on Eclipse 3.5.1. The user interface and task flow may vary somewhat in Eclipse 3.4.2.
GETTING HELP – If you have problems, send a message to http://xircles.codehaus.org/lists/eclipse-plugin-user@groovy.codehaus.org.
Do |
See | |
---|---|---|
1 |
In Eclipse, click File > New > Groovy Project.
|
|
2 |
In the New Groovy Project wizard, type a name in the Project Name box, and click Next.
|
|
3 |
The tabs and options in the Build Settings window are identical to those in the the Java Development Tool (JDT).
|
|
4 |
Select the project in the Package Explorer, and click File > New > Groovy Class. |
|
5 |
In the Groovy Class wizard, type a name for the class in the Name box, a name for the package in the Packagefield, and click Finish to create the class and package.
|
|
6 |
GroovyEclipse creates the new class. The new class,
|
|
7 |
Paste this code into the file: |
|
8 |
Right click anywhere in the editor and then Run > Run As > Groovy Scriptor Java Application.
|
|
9 |
The greeting is issued in the Consoletab. |
|