Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p><span style="color: rgb(0,0,0);">The Groovy-Eclipse team is proud to announce the release of Groovy-Eclipse 2.7.0. This is the first release that includes Groovy 2.0 final and that is available on Eclipse 4.2 (Juno). Now that Eclipse 4.2 is released, we will be dropping our Eclipse 3.6 support.<br /></span></p><p><span style="color: rgb(0,0,0);">You can use the following update sites to install this release:</span></p><table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=Groovy-Eclipse update site for Eclipse 4.2 and 3.7" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9R3Jvb3Z5LUVjbGlwc2UgdXBkYXRlIHNpdGUgZm9yIEVjbGlwc2UgNC4yIGFuZCAzLjd9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p><span style="color: rgb(0,0,0);">For Eclipse 4.2 (Juno):</span><br /><span style="color: rgb(0,0,0);"> <code><a href="http://dist.springsource.org/release/GRECLIPSE/e4.2/"><span style="color: rgb(0,0,0);">http://dist.springsource.org/release/GRECLIPSE/e4.2/</span></a></code></span></p><p><span style="color: rgb(0,0,0);">For Eclipse 3.7 (Indigo):</span><br /><span style="color: rgb(0,0,0);"> <code><a href="http://dist.springsource.org/release/GRECLIPSE/e3.7/"><span style="color: rgb(0,0,0);">http://dist.springsource.org/release/GRECLIPSE/e3.7/</span></a></code></span></p><span style="color: rgb(0,0,0);"> </span></td></tr></table><p><span style="color: rgb(0,0,0);">The Groovy 2.0 compiler is not installed by default. If you want to install it, you can do so from the <em>Extra Compilers </em>category in the update site.<br /></span></p><p><span style="color: rgb(0,0,0);">And a zipped version of the update site is available at:</span></p><table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=Zipped Groovy-Eclipse update site for Eclipse 4.2 and 3.7" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9WmlwcGVkIEdyb292eS1FY2xpcHNlIHVwZGF0ZSBzaXRlIGZvciBFY2xpcHNlIDQuMiBhbmQgMy43fQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p><span style="color: rgb(0,0,0);">For Eclipse 4.2 (Juno):</span><br /><span style="color: rgb(0,0,0);"> <code><a href="http://dist.springsource.org/release/GRECLIPSE/e4.2/archive-2.7.0.xx-20120703-1400-e42-RELEASE.zip"><span style="color: rgb(0,0,0);">http://dist.springsource.org/release/GRECLIPSE/e4.2/archive-2.7.0.xx-20120703-1400-e42-RELEASE.zip</span></a></code></span></p><p><span style="color: rgb(0,0,0);">For Eclipse 3.7 (Indigo):</span><br /><span style="color: rgb(0,0,0);"> <code><a href="http://dist.springsource.org/release/GRECLIPSE/e3.7/archive-2.7.0.xx-20120703-1400-e37-RELEASE.zip"><span style="color: rgb(0,0,0);">http://dist.springsource.org/release/GRECLIPSE/e3.7/archive-2.7.0.xx-20120703-1400-e37-RELEASE.zip</span></a></code></span></p><p><span style="color: rgb(0,0,0);">You can install from the zip by pointing your Eclipse update manager to the downloaded zip file and following the installation instructions. <em>Do not unzip into your Eclipse dropins folder.</em><br /></span></p></td></tr></table><p><span style="color: rgb(0,0,0);"><img class="editor-inline-macro" src="/plugins/servlet/confluence/placeholder/macro?definition=e3RvYzppbmRlbnQ9MTBweHxtYXhMZXZlbD00fHN0eWxlPWRpc2N9&locale=en_GB&version=2" data-macro-name="toc" data-macro-parameters="indent=10px|maxLevel=4|style=disc"></span></p><h3><span style="color: rgb(0,0,0);">Groovy 2.0<br /></span></h3><p><span style="color: rgb(0,0,0);"><span style="color: rgb(0,0,0);">Groovy 2.0 is now available in Groovy-Eclipse as an optional add-on</span>. We have not yet made the compiler default because we make our default compiler compatible with the default compiler of the latest release of Grails. At the time of this release, Grails is at version 2.0.4, which uses Groovy 1.8 as its compiler. When Grails moves to being based on Groovy 2.x, Groovy-Eclipse will move its default compiler as well.</span></p><p><span style="color: rgb(0,0,0);">To install Groovy 2.0, go to Help --> Install new Software. In the work with tab, choose the Groovy-Eclipse update site and select the <em>Extra Compilers</em> category:</span></p><p><span style="color: rgb(0,0,0);"><img class="confluence-embedded-image confluence-content-image-border" height="252" width="319" src="/download/attachments/230400703/install20.png?version=1&modificationDate=1368994041017" data-image-src="/download/attachments/230400703/install20.png?version=1&modificationDate=1368994041017" data-linked-resource-id="230565188" data-linked-resource-type="attachment" data-linked-resource-default-alias="install20.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > install20.png"><br /></span></p><p><span style="color: rgb(0,0,0);">Read <a class="confluence-link" href="/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse" data-linked-resource-id="133923519" data-linked-resource-type="page" data-linked-resource-default-alias="Compiler Switching within Groovy-Eclipse" data-base-url="http://docs.codehaus.org">Compiler Switching within Groovy-Eclipse</a> for more information on how to install Groovy 2.0 and how to switch compiler levels.</span></p><h3><span style="color: rgb(0,0,0);">Maven integration with <code>groovy-eclipse-compiler</code></span></h3><p><span style="color: rgb(0,0,0);">The groovy-eclipse-compiler plugin for maven has just released the 2.7.0-01 version and now uses Groovy 2.0 to compile against by default. You can specify other Groovy compiler levels if required. See <a class="confluence-link" href="/display/GROOVY/Groovy-Eclipse+compiler+plugin+for+Maven" data-linked-resource-id="193888332" data-linked-resource-type="page" data-linked-resource-default-alias="Groovy-Eclipse compiler plugin for Maven" data-base-url="http://docs.codehaus.org">Groovy-Eclipse compiler plugin for Maven</a> for more information.<br /></span></p><h3><span style="color: rgb(0,0,0);">@TypeChecked and @CompileStatic Support</span></h3><p><span style="color: rgb(0,0,0);">With the 2.0 compiler enabled, you can use the</span><span style="color: rgb(0,0,0);"><code> @TypeChecked</code> and <code>@CompileStatic</code> annotations and Groovy-Eclipse compiles with them appropriately. Here is an example from the <a href="http://www.infoq.com/articles/new-groovy-20">What's new in Groovy 2.0</a> article on <a href="http://www.infoq.com">InfoQ</a>:</span></p><table class="confluenceTable"><tbody><tr><th style="text-align: center;" class="confluenceTh"><p>TypeChecked</p></th><th style="text-align: center;" class="confluenceTh"><p>CompileStatic</p></th></tr><tr><td class="confluenceTd"><p><span><img class="confluence-embedded-image confluence-content-image-border" height="135" width="300" src="/download/attachments/230400703/typeChecked.png?version=1&modificationDate=1368994041014" data-image-src="/download/attachments/230400703/typeChecked.png?version=1&modificationDate=1368994041014" data-linked-resource-id="230565187" data-linked-resource-type="attachment" data-linked-resource-default-alias="typeChecked.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > typeChecked.png"></span></p></td><td class="confluenceTd"><p><img class="confluence-embedded-image confluence-content-image-border" height="140" width="307" src="/download/attachments/230400703/compileStatic.png?version=1&modificationDate=1368994041006" data-image-src="/download/attachments/230400703/compileStatic.png?version=1&modificationDate=1368994041006" data-linked-resource-id="230565186" data-linked-resource-type="attachment" data-linked-resource-default-alias="compileStatic.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > compileStatic.png"></p></td></tr></tbody></table><p><span style="color: rgb(0,0,0);">Also, reconciling (i.e., eager parsing as you type) handles these annotations properly. So, you get proper affordance when changing <code>int object = new Date()</code> to <code>Date object = new Date():</code></span></p><p><span style="color: rgb(0,0,0);"><span style="color: rgb(0,0,0);"><img class="confluence-embedded-image confluence-content-image-border" height="25" width="235" src="/download/attachments/230400703/compileStaticReconcile.png?version=1&modificationDate=1368994040998" data-image-src="/download/attachments/230400703/compileStaticReconcile.png?version=1&modificationDate=1368994040998" data-linked-resource-id="230565185" data-linked-resource-type="attachment" data-linked-resource-default-alias="compileStaticReconcile.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > compileStaticReconcile.png"></span></span></p><h3>Assign statement to new local variable quickfix</h3><p>The Groovy-Eclipse editor now provides a new quickfix for assigning a statement to a local variable. To access the quickfixes, press CTRL/CMD+1. Choose <em>Assign statement to new local variable</em>:</p><p><img class="confluence-embedded-image confluence-content-image-border" height="81" width="555" src="/download/attachments/230400703/assignToLocal.png?version=1&modificationDate=1368994040930" data-image-src="/download/attachments/230400703/assignToLocal.png?version=1&modificationDate=1368994040930" data-linked-resource-id="230565179" data-linked-resource-type="attachment" data-linked-resource-default-alias="assignToLocal.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > assignToLocal.png"></p><p>And the results look something like this:</p><p><img class="confluence-embedded-image confluence-content-image-border" height="37" width="367" src="/download/attachments/230400703/assignToLocal2.png?version=1&modificationDate=1368994040911" data-image-src="/download/attachments/230400703/assignToLocal2.png?version=1&modificationDate=1368994040911" data-linked-resource-id="230565178" data-linked-resource-type="attachment" data-linked-resource-default-alias="assignToLocal2.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > assignToLocal2.png"></p><h3><span style="color: rgb(0,0,0);"><span style="color: rgb(0,0,0);">Convert variable to field</span></span></h3><p>Groovy-Eclipse now provides a refactoring to convert local variables to fields. To access the refactoring, select a local variable:</p><p><img class="confluence-embedded-image confluence-content-image-border" height="80" width="321" src="/download/attachments/230400703/convertToField1.png?version=1&modificationDate=1368994040979" data-image-src="/download/attachments/230400703/convertToField1.png?version=1&modificationDate=1368994040979" data-linked-resource-id="230565183" data-linked-resource-type="attachment" data-linked-resource-default-alias="convertToField1.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > convertToField1.png"></p><p>In the context menu, choose Refactoring --> Convert Local Variable to Field...</p><p><img class="confluence-embedded-image confluence-content-image-border" height="147" width="560" src="/download/attachments/230400703/convertToField2.png?version=1&modificationDate=1368994040963" data-image-src="/download/attachments/230400703/convertToField2.png?version=1&modificationDate=1368994040963" data-linked-resource-id="230565182" data-linked-resource-type="attachment" data-linked-resource-default-alias="convertToField2.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > convertToField2.png"></p><p>A wizard pops up where you can tweak your options and preview the results:</p><p><img class="confluence-embedded-image confluence-content-image-border" height="362" width="481" src="/download/attachments/230400703/convertToField3.png?version=1&modificationDate=1368994040949" data-image-src="/download/attachments/230400703/convertToField3.png?version=1&modificationDate=1368994040949" data-linked-resource-id="230565181" data-linked-resource-type="attachment" data-linked-resource-default-alias="convertToField3.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > convertToField3.png"></p><p>Note that not all options are implemented yet. Unimplemented pieces of the refactoring wizard are grey. After pressing OK, you will see something like this:</p><p><img class="confluence-embedded-image confluence-content-image-border" height="94" width="272" src="/download/attachments/230400703/convertToField4.png?version=1&modificationDate=1368994040941" data-image-src="/download/attachments/230400703/convertToField4.png?version=1&modificationDate=1368994040941" data-linked-resource-id="230565180" data-linked-resource-type="attachment" data-linked-resource-default-alias="convertToField4.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > convertToField4.png"></p><h3>Doc hovers with @link and @see</h3><p><span style="color: rgb(0,0,0);">Doc hovers now respect the <code>@link</code> and<code> @se</code>e JavaDoc tags, so you can add them to your DSLDs and users will be able to follow proper links to other parts of the source code:<br /></span></p><p><img class="confluence-embedded-image confluence-content-image-border" height="308" width="341" src="/download/attachments/230400703/seeAndLink.png?version=1&modificationDate=1368994040990" data-image-src="/download/attachments/230400703/seeAndLink.png?version=1&modificationDate=1368994040990" data-linked-resource-id="230565184" data-linked-resource-type="attachment" data-linked-resource-default-alias="seeAndLink.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="230400703" title="null > seeAndLink.png"></p><h3><span style="color: rgb(0,0,0);">Source code to github</span></h3><p><span style="color: rgb(0,0,0);">Groovy-Eclipse is now on GitHub. Forking and pull requests are appreciated!</span></p><table class="wysiwyg-macro" data-macro-name="info" data-macro-parameters="title=GitHub Project" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e2luZm86dGl0bGU9R2l0SHViIFByb2plY3R9&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="RICH_TEXT"><tr><td class="wysiwyg-macro-body"><p><span style="color: rgb(0,0,0);"><a href="https://github.com/groovy/groovy-eclipse">https://github.com/groovy/groovy-eclipse</a></span></p></td></tr></table><p><span style="color: rgb(0,0,0);">The old SVN repository is no longer valid.</span></p><h3><span style="color: rgb(0,0,0);">Compatibility</span></h3><p><span style="color: rgb(0,0,0);">Groovy-Eclipse 2.7.0 includes Groovy 1.8.6 by default. <a class="confluence-link" href="/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse" data-linked-resource-id="133923519" data-linked-resource-type="page" data-linked-resource-default-alias="Compiler Switching within Groovy-Eclipse" data-base-url="http://docs.codehaus.org"><span style="color: rgb(0,0,0);">Groovy 1.7.10 can be enabled optionally</span></a>, and Groovy 2.0.0 can be installed through the extra compilers section on the update site.<br /></span></p><p><span style="color: rgb(0,0,0);">This version of Groovy-Eclipse is recommended to be installed on STS 2.9.2, STS 3.0.0.M3, Eclipse 3.7.2, or Eclipse 4.2. There is also a 4.2-based Groovy-Eclipse now available. See above for the update site.</span></p><h3><span style="color: rgb(0,0,0);">Bug fixes</span></h3><p><span style="color: rgb(0,0,0);">See the details on our <a href="http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+GRECLIPSE+AND+fixVersion+%3D+18349+AND+status+in+%28Resolved%2C+Closed%29+ORDER+BY+priority+DESC"><span style="color: rgb(0,0,0);">issue tracker</span></a>.</span></p><h3><span style="color: rgb(0,0,0);">What's next?</span></h3><p><span style="color: rgb(0,0,0);">We are planning a 2.8.0 release in October. You can take a look at all issues we are <a href="http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project+%3D+GRECLIPSE+AND+fixVersion+in+%2818617%2C+18618%29+AND+status+in+%28Open%2C+%22In+Progress%22%2C+Reopened%29"><span style="color: rgb(0,0,0);">planning to fix for this release</span></a>.</span></p><p><span style="color: rgb(0,0,0);">We appreciate all community support and feedback. If you wish to join the discussion about Groovy-Eclipse then please sign up for the <a href="http://xircles.codehaus.org/manage_email/eclipse-plugin-user@groovy.codehaus.org"><span style="color: rgb(0,0,0);">mailing list</span></a>. For any issues you have (or enhancements you would like to see), please raise them in our <a href="http://jira.codehaus.org/browse/GRECLIPSE"><span style="color: rgb(0,0,0);">issue tracker</span></a>. If there is an existing bug fix or enhancement that you require are not seeing any movement on, please make some noise on it (and get your friends to do the same). We respond to community feedback, and we can make the most improvements to Groovy-Eclipse when we hear directly from the community. So, please speak up.</span></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced