Skip to content
EduVerse

Groovy

Mentioned

Programming language

Dynamic JVM language with a concise syntax. Common in Gradle build scripts and Jenkins pipelines.

Groovy, explained

Written by EduVerse

What it is

Groovy is a dynamic language that runs on the JVM and can use any Java library. Its syntax looks like a relaxed Java: semicolons, type declarations and a lot of boilerplate are optional, which makes it handy for scripts and configuration written as code.

Why teams use it

Groovy lets you script the JVM without Java’s ceremony, and its flexible syntax makes it easy to build small configuration languages on top of it. That is why Gradle’s build.gradle files and Jenkins pipelines use it. For new Gradle builds, many teams now pick the Kotlin variant instead.

An example from work

You need to add a library to a Java project and open build.gradle. The dependencies block, with lines starting with implementation, is Groovy, even though it reads more like configuration than code. Later you meet the same syntax in the Jenkinsfile that runs your team’s CI pipeline.

Our own explanation, not a quote from the book.

Where it fits

Build scripts, CI/CD pipelines, scripting on the JVM

Coverage in the book

Mentioned

Mentioned as part of the wider landscape, without in-depth coverage.

Appears in