Groovy
Website:
groovy-lang.orgDesigned by: James Strachan
First appeared: 2003, 23 years ago
License: Apache 2.0
Filename extensions: .groovy, .gvy, .gy, .gsh
Groovy
Groovy is object-oriented programming language that runs on the JVM. Groovy uses curly-bracket syntax, like Java's. It is both a static and dynamic language, and can be used as a programming and scripting language.
History
In August 2003, James Strachan first talked about developing Groovy on his blog. In March 2004, Groovy was submitted to the Java Community Process and was accepted by ballot. Several beta and early versions were released from 2004 to 2006, and stable versions were released in 2006. Version 1.0 was released on 2 January 2007. After many betas and release candidates numbered 1.1, Groovy 1.1 Final was released, and immediately renumbered as Groovy 1.5 to reflect the many changes made.
In 2007, Groovy won the first prize at the JAX 2007 innovation award. In 2008, a Groovy web framework named Grails, won the second price at the JAX 2008 innovation award.
On 2 July 2012, Groovy 2.0 was released, which added features such as static compiling and static type checking.
In April 2013, Groovy changed its governance structure from a Codehaus repository to a Project Management Committee in the Apache Software Foundation. Groovy graduated from an incubator and became a top-level project in November 2015.
On 7 February 2020, Groovy 3.0 was released, introducing a major overhaul to the language with around 600 bug fixes and new features, such as a revamped parser codenamed Parrot that replaced the old Antlr2 parser.
On 25 January 2022, Groovy 4.0 was released, introducing many major features like switch expressions, sealed types, and record types.
Example Code
The following snippet of Groovy code prints "Hello, world!" to the terminal window.
println 'Hello, world!'References
En Wikipedia Org. (2026). Apache Groovy. https://en.wikipedia.org/wiki/Apache_Groovy. Retrieved August 7, 2026.