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 the perfect tool in a Java developer's hands. The following recipes will describe external dependency management possibilities and the most popular build tools (for example, Ant, Maven, and Gradle) integration options. Then there will be a recipe devoted to Groovydoc, which can be used to generate documentation for your sources. Finally, the last recipe will introduce a way to verify your Groovy code quality.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset