Groovy 2.4 is the latest major and stable version of the popular alternative language for the JVM.
In this new release, Groovy features:
"Groovy is like a super version of Java. It can leverage Java's enterprise capabilities but also has cool productivity features like closures, builders and dynamic typing. If you are a developer, tester or script guru, you have to love Groovy."
A simple hello world script:
A more sophisticated version using Object Orientation:
Leveraging existing Java libraries:
On the command line:
The Groovy development team is happy to announce the joint releases of the Groovy 2.4.1 and Groovy 2.3.10 of the Groovy programming language for the Java platform.
Both releases are bug fix releases, and while Groovy 2.4.1 is the latest official stable branch, we thought it might be helpful to some projects who are still on the 2.3.x line to get a final release for that branch. But going forward, the 2.3.x branch won’t see any upcoming release.
You can learn more about all the tickets closed by reading:
For reference, you can also read the release notes of Groovy 2.4 if you haven't had a chance to since the announcement.
Head over to the download section of the new Groovy website to download the binary distribution, or update your dependencies accordingly with those new version numbers.
Thanks a lot for all those who contributed to this release!