Chapter 1. Getting Started with Groovy

In this chapter, we will cover:

  • Installing Groovy on Windows
  • Installing Groovy on Linux and OS X
  • Executing Groovy code from the command line
  • Using Groovy as a command-line text file editor
  • Using Groovy to start a server on the command line
  • Running Groovy with invokedynamic support
  • Building Groovy from source
  • Managing multiple Groovy installations on Linux
  • Using groovysh to try out Groovy commands
  • Starting groovyConsole to execute Groovy snippets
  • Configuring Groovy in Eclipse
  • Configuring Groovy in IntelliJ IDEA

Introduction

The first chapter focuses on the basics of getting started with Groovy. We begin by showing how to install Groovy on the most popular operating systems and we move to some command-line tools available ...

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.