Before you begin programming, you need to install some basic tools.
Java/Groovy
JDK (Java Development Kit) , such as JDK 11
IDE (Integrated Development Environment) , such as IntelliJ IDEA or NetBeans
Groovy
Install Groovy
Go and install Groovy3 3.
You can download Groovy from https://groovy-lang.org and install it. If you install it manually, you may need to set the JAVA_HOME environment variable to the location of your Java installation and GROOVY_HOME to the location of your groovy installation.
For an easier experience, you may optionally use SDKMAN to install Java and Groovy using “sdk install java” and “sdk install groovy” on the command line. Go to sdkman.io to download it.
Trying It Out
After installing Groovy, you should use it to try coding. Open a command prompt and type groovyConsole and press enter to begin.
In the Groovy Console , type the following and then press Ctrl+R to run the code and Ctrl+W to clear the output:
1 print "hello"
You should keep the Groovy Console open and use it to try all of the examples in this book.
Others
Go ahead and install these if you're in the mood—I'll wait.
Code on GitHub
A lot of the code from this book is available at https://github.com/adamldavis/learning-groovy.8 You can go there at any time to follow along with the book.