Groovy update: What's new in Groovy 3 and coming in 4
summary
Groovy 3 ships the Parrot parser and groundwork for module cleanup while Groovy 4 reaches release-candidate stage with over 500 contributors and a billion total downloads behind it. Groovy 4 trims the distribution (zip ~33% smaller, core jar ~10% smaller), moves artifacts to org.apache.groovy, drops little-used modules, adds new built-in type checkers and macro methods, a JavaShell for compiling Java snippets, record-like classes and sealed types, a Groovy-integrated query engine, and an optional design-by-contract module.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:18Groovy status in 2021: Healthy
- 2:28Groovy - Ranking steady
- 3:48Groovy 3 - Summary
- 6:40Module changes
- 9:11Legacy consolidation Old parser removal
- 11:27Records
- 12:54Sealed Type Motivation • Inheritance is a powerful abstraction for building systems
- 18:00Sealed Types - Hybrid hierarchies
- 20:36Language Integrated Query (GQ, GINO)
- 21:17Language Integrated Query Motivation
- 23:35Switch expressions
- 25:45Type Annotations
- 27:26Built-in type checkers: regex checker
- 29:43Built-in macro methods
- 30:53JavaShell
- 33:12Groovy 4 - Summary Consolidation & Structuring Maven coordinates
- 34:38@POJO (incubating)
- 37:40groovy-contracts module
- 38:24GDK Enhancements








