Установите Groovy на Ubuntu

$ curl -s get.sdkman.io | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install groovy
Splendid Skunk