Chapter 2. Using Groovy Ecosystem

In this chapter, we will cover:

  • Using Java classes from Groovy
  • Embedding Groovy into Java
  • Compiling Groovy code
  • Simplifying dependency management with Grape
  • Integrating Groovy into the build process using Ant
  • Integrating Groovy into the build process using Maven
  • Integrating Groovy into the build process using Gradle
  • Generating documentation for Groovy code
  • Checking Groovy code's quality with CodeNarc

Introduction

In this chapter, we will introduce the Groovy ecosystem: compilation, embedding, building, documentation, and analysis options that various, tools surrounding, Groovy offer to make your life smoother.

In the first three recipes, we will demonstrate how simple Java and Groovy interoperability is and what makes Groovy ...

Get Groovy 2 Cookbook 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.