scripting

Writing Groovy scripts for automation and rapid prototyping.

Groovy Grape – Dependency Management for Scripts | 12 Tested Examples

Groovy Grape dependency management with @Grab. 12+ examples covering @GrabConfig, @GrabExclude, @GrabResolver, custom repos, and Grape cache. Groovy 5.0.6. “The best scripts are the ones that just work – no build files, no setup, no excuses. Groovy Grape makes that possible.” Last Updated: July 2026 | Tested on: Groovy 5.0.6, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes What is Groovy Grape? Ever wanted to use Apache Commons, Google Guava, or a JDBC driver in a ... Read More

10 Useful Groovy -e Command Line Examples to Run Scripts Instantly

You want to check what a regex matches, or how Groovy formats today’s date, and opening an IDE for that feels ridiculous. The groovy command line -e option runs a snippet straight from your terminal, no file required. This post covers the syntax, 10 tested one-liners, and the -n and -p flags that turn Groovy into a text-processing tool. “Why create a file when you can run it right from the command line?” Last Updated: July 2026 | Tested on: ... Read More