First, let’s get a big misunderstanding out of the way. It’s perfectly possible to use Spock in your Java project without installing Groovy itself. It’s nice to have the Groovy tools available for quick tests and small scripts, but they’re by no means necessary.
To install Groovy, go to http://groovy-lang.org/download.html and follow the instructions for your operating system. The easiest way is to download the zip file, extract it in a directory of your choice, and set your PATH variable accordingly.
After installing Groovy, you should have the following commands available:
3.141.197.251