- Features and Status
- Getting Builds
- Getting Started with GroovyEclipse v2
- Information Resources
- Developer Resources
- Open Issues
This page has information about GroovyEclipse Plugin v2. For information about v1 of the plugin, see About GroovyEclipse Plugin v1.
Features and Status
The GroovyEclipse Plugin provides Eclipse-based tooling support for the Groovy programming language. GroovyEclipse allows you to edit, compile, run, and debug Groovy scripts and classes from the Eclipse SDK.
- Syntax highlighting
- Compile and run Groovy classes and scripts in Eclipse
- Outline view for Groovy files
- Source code formatting
Read about the goals, approach, and implementation of GroovyEclipse v2 at http://blog.springsource.com/2009/07/30/a-groovier-eclipse-experience/.
See what's new in the M1 release at Groovy-Eclipse 2.0.0M1 New and Noteworthy.
Eclipse Version Compatibility
GroovyEclipse Plugin v2 supports 3.4.2 and 3.5.n
Milestone 1 build is released. General availability is planned for year-end 2009.
Milestone and development builds are available. A milestone build is a relatively stable build, released at the completion of a project milestone. Development builds are are published more frequently, and contain more new features and fixes. Published development build have passed unit tests, but may be less stable than milestone builds.
GroovyEclipse v2.0 Milestone 1 (M1) is available for Eclipse 3.5 at:
Development builds for Eclipse 3.5 are at:
Development builds for Eclipse 3.4 are at:
Archived Development Builds
Archived snapshots of the plugin are available at:
These zip files are the compressed version of the update site. They are not plugins that you can just drop into your eclipse installation. Here's how to install an archive:
- Download the snapshot locally
- Do not unzip or move into your dropins directory
- Start eclipse
- Help -> Install new software -> Add...
- Select the location of the zip you just downloaded
- Install as you would from the regular update site
Important: GroovyEclipse plugin will only install on Eclipse 3.4.2 or Eclipse 3.5 or 3.5.1 because a specific version of the JDT feature is required. See Groovy Eclipse FAQ for more information.
Getting Started with GroovyEclipse v2
This section has brief instructions for getting started with GroovyEclipse v2. The instructions assume familiarity with Eclipse. Users new to Eclipse, may wish to follow the links to tutorials, which illustrate and provide novice level instructions for installing and using the plugin.
FAST FACTS: How to Install
- Go to: Help -> Software Updates
- Change to the Available Software tab
- Click on Add Site
- Paste the update site URL appropriate for your version of Eclipse and click OK
- You should now see a Groovy Update Site entry in the list of update sites. Expand and select the Groovy-Eclipse plugin feature and the JDT Core Patch feature. Optionally, you can choose to include the sources.
- Click Install and follow the prompts
- Restart when asked
- Rejoice! You now have the Groovy-Eclipse plugin installed.
For step-by-step instructions, see the Install GroovyEclipse Plugin tutorial.
FAST FACTS: How to Create a Groovy Project
To create a basic Groovy project in Eclipse perform the following steps:
- Open the Java perspective
- Click on the new Groovy Project icon:
- The new project wizard for Groovy uses most of the same options as the new project wizard for Java.
- Fill in the appropriate details and create the project.
You should have a src folder and several libraries. A bin folder is also created, but is hidden.
You can create a Groovy classes or test cases using wizards similar to the Eclipse's Java class and JUnit test case wizards. Use the options on the File > New menu or press CTRL-N.
For step-by-step instructions, see the Create Your First Groovy Project tutorial.
FAST FACTS: How to Test the Plugin
It is a good idea to test the plugin before installing in your regular Eclipse installation. The main test project is
org.codehaus.groovy.alltests. To run the tests, right-click on the project and select Run As->JUnit Plug-in Test.
Use the resources listed below to learn about GroovyEclipse Plugin v2 and keep abreast of project status and milestones.
The first two of a series of tutorials on using GroovyEclipse Plugins v2 are available.
Join GroovyEclipse mailing lists to find answers, ask questions, and contribute to discussions about v2 of the plugin.
- For usage-related topics, join http://firstname.lastname@example.org
- For dev-related topics, join http://email@example.com.
- Report Bugs - Bugs can be viewed and filed on http://jira.codehaus.org/browse/GRECLIPSE.
If you wish to view but not download the source code, use FishEye.
If you wish to download sources, use of Subversive to check out the source code.
The plugin source contains Groovy source files. You must have a groovy compiler to build the plugin. Groovy compilers are included in the plugin distribution, which you can download from from http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/ or http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.4/.
Building and Installing an Update Site
Building the Update Site
Instructions to come later. If you are interested in doing this, please contact the mailing list._
Installing the update site that you built
The update site you just created can now be installed with the Eclipse update manager. You can install the Groovy feature by following the instructions in the Update Site section above, but using a Local Site pointing to the GroovySite directory that you just built, instead of a Remote Site.