Make the exec resource that installs Groovy a refreshonly resource.
Do a cp -r instead of an mv since mv usually refuses to do folder moves if the destination is empty.