Groovy XML & JSON

Parsing and generating XML and JSON in Groovy. Tutorials on XmlSlurper, XmlParser, MarkupBuilder, JsonSlurper, JsonBuilder, and REST APIs.

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.x. “The best scripts are the ones that just work – no build files, no setup, no excuses. Groovy Grape makes that possible.” Guillaume Laforge, Groovy Project Lead Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes What is Groovy Grape? Ever wanted to use Apache Commons, Google Guava, or ... Read More

Groovy CSV Parsing and Generation – 10+ Tested Examples

Groovy CSV parsing and generation with 10+ examples. Split, tokenize, OpenCSV, read/write CSV files, handle headers and special chars on Groovy 5.x. “CSV files are the cockroaches of data formats – they survive everything and show up everywhere. Groovy gives you clean ways to deal with them.” Rob Pike, Notes on Programming in C Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 22 minutes CSV files are everywhere – ... Read More

Groovy Date and Time – Modern API Guide with 12 Tested Examples

Groovy date and time with the java.time API. 12+ examples covering LocalDate, LocalDateTime, ZonedDateTime, Duration, formatting. Groovy 5.x. “The only reason for time is so that everything doesn’t happen at once. In Groovy, at least, you get to control when it does.” Adapted from Albert Einstein Last Updated: March 2026 | Tested on: Groovy 5.x, Java 17+ | Difficulty: Beginner to Intermediate | Reading Time: 25 minutes If you’ve ever wrestled with java.util.Date and SimpleDateFormat in Groovy, you know the ... Read More