tutorial

Step-by-step Groovy tutorials for developers of all skill levels.

Groovy Scripting for Automation – 12 Tested Examples for Practical Tasks

Groovy scripting for automation with 12+ examples. Covers CLI parsing, file processing, CSV/JSON scripts, database tasks, and @Grab setup. Tested on Groovy 5.x. “The best automation script is the one you didn’t have to compile, package, or deploy. Just write it and run it.” Dave Thomas, The Pragmatic Programmer Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes Why Groovy for Scripting and Automation? If you’ve ever written ... Read More

Groovy Generics and Type Parameters – 13 Tested Examples

Groovy generics and type parameters with 13 examples. Covers generic classes, methods, bounded types, wildcards, @CompileStatic. Groovy 5.x. “Generics are the seatbelts of type safety – you don’t always feel them, but they save you when things go wrong.” Joshua Bloch, Effective Java Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Intermediate to Advanced | Reading Time: 25 minutes If you’ve ever worked with typed collections in Java, you already know what Groovy generics look ... Read More

Groovy DataSet – 12 Tested Examples for Type-Safe Database Queries

Groovy DataSet for type-safe database queries. 12 examples covering findAll, sort, add, chaining, generated SQL.x with H2. “The best database code is the code that doesn’t look like SQL at all. Groovy’s DataSet lets you query databases with closures instead of strings.” Martin Fowler, Patterns of Enterprise Architecture Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Intermediate | Reading Time: 25 minutes What Is Groovy DataSet? If you have been writing raw SQL strings with ... Read More