1. 下载
- https://archive.apache.org/dist/groovy
- https://groovy.apache.org/download.html
- https://www.filehorse.com/download-groovy
2. 安装
拷贝并解压安装包(apache-groovy-binary-2.4.12.zip/apache-groovy-sdk-2.4.12.zip)至指定目录(如:E:\software\groovy-2.4.12)即可。3. 配置
配置系统环境变量。GROOVY_HOME=E:\software\groovy-2.4.12
# 新增PATH
;%GROOVY_HOME%\bin
4. 验证
groovy -v
5. 简单CLI(groovyConsole)
println "hello groovy"
# 执行快捷键:“CTRL + R”