grab

Using @Grab to fetch Maven dependencies in Groovy scripts.

Groovy @Grab Annotation – Practical Recipes with 10+ Examples

Practical Groovy Grab annotation (@Grab) recipes for popular libraries. 12 copy-paste examples: Gson, Apache Commons CSV, OkHttp, JDBC drivers, Jsoup, and more – each with a working script you can run immediately. “The best dependency manager is the one you forget is there – until you need a library at 2 AM and it just downloads itself into your script.” Guillaume Laforge, Groovy Project Lead Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner-Intermediate | ... Read More

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 Dependency Management – Grape vs Gradle vs Maven Compared

Groovy dependency management compared: Grape, Gradle, and Maven. Learn when to use @Grab for scripts vs a full build tool for projects, with 10+ tested examples and migration patterns. “The best dependency manager is the one you do not have to configure. Groovy Grape gets you libraries in one annotation.” Guillaume Laforge, Groovy Project Lead Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Intermediate | Reading Time: 22 minutes Groovy dependency management is a question ... Read More