Groovy 4 was released in early 2022, alpha versions of Groovy 5 have been released in recent months. Groovy 4 includes switch expressions, sealed types, records, additional module re-working, bundled type checker extensions, bundled macro methods, a JavaShell, some additional AST transformations, and a myriad of other new miscellaneous features. Groovy 5 includes improved scripting support, many GDK enhancements, var for multi-assignment and underscore as a placeholder.