CHAPTER 3

image

Groovy Language Primer

Gradle build scripts are written using Groovy. This chapter covers the basics of the Groovy programming language.

Groovy is a dynamic programming language that runs on the JVM. Groovy language is designed from the ground up to be source- and binary-compatible with Java. This compatibility allows Groovy classes to extend Java classes or leverage the vast array of Java frameworks and libraries. The 1.0 version of Groovy was released in January of 2007. The next major release—Groovy 2.0—was in July 2012. At the time of writing this book, the latest version of Groovy was 2.4. Groovy is open source and is distributed ...

Get Introducing Gradle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.