Unzip the Groovy zip file to /tmp instead of the install directory.
Make sure the Groovy install folder is made after the unzip exec resource.
Run the install exec only after creating the install folder.
Adjust the path for the creates => parameter to reflect the new location where the zip file is extracted.
Copy from the extraction folder in /tmp instead of the old one that was in /usr/local/bin/groovy.
Use a full path to the cp command to ensure we use the actual binary and not a shell alias that attaches the option preventing file overwrites.
Hash rocket alignment.