Groovy Advanced

Advanced Groovy topics. GINQ queries, Grape dependency management, generics, type checking, command chains, DSL building, and Groovy 5 features.

Groovy Modern Features – Cookbook Guide with 10+ Examples

Groovy modern features introduced in versions 4 and 5 worth knowing. See 14 tested examples covering records, sealed classes, switch expressions, pattern matching, text blocks, GINQ queries, var keyword, and virtual threads integration. “A language that doesn’t evolve eventually gets replaced by one that does. Groovy 4 and 5 prove the language has no plans to stop evolving.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate-Advanced | Reading Time: 25 minutes The groovy modern ... Read More

GPars Tutorial – Groovy Parallel Programming with 10+ Examples

GPars tutorial with 13 tested examples. Learn parallel collections, Actors, Dataflow variables, Agents, and async patterns for high-performance Groovy parallel programming. One honest caveat before we start: GPars’ last release was 1.2.1 back in 2014 and the project is essentially unmaintained. It still works and its ideas are worth learning, but for new production code prefer java.util.concurrent, virtual threads (Java 21+), or structured concurrency. “Concurrency is not parallelism.” Rob Pike, Waza 2012 Last Updated: July 2026 | Tested on: Groovy ... Read More

Groovy Idiomatic Patterns – Category, Delegation, and Closure Patterns

Groovy idiomatic patterns that have no Java equivalent. 12 tested examples covering Category, @Delegate, closure-based DSLs, builder patterns, method chaining, and patterns that only work because Groovy is Groovy. “Design patterns are not about memorizing class diagrams – they’re about recognizing recurring problems. In Groovy, half the GoF patterns collapse into a closure and a map.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Intermediate | Reading Time: 20 minutes Our Groovy Design Patterns post ... Read More