Groovy安装
进入Groovy的官网下载安装SDKMAN()
以下是官网的下载方法(http://www.groovy-lang.org/download.html)
This tool makes installing Groovy on any Bash platform (Mac OSX, Linux, Cygwin, Solaris or FreeBSD) very easy.
Simply open a new terminal and enter:
$ curl -s get.sdkman.io | bash
Follow the instructions on-screen to complete installation.
Open a new terminal or type the command:
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
Then install the latest stable Groovy:
$ sdk install groovy
![](https://images2015.cnblogs.com/blog/595892/201601/595892-20160110003156153-525954058.png)
After installation is complete and you've made it your default version, test it with:
$ groovy -version
That's all there is to it!
![](https://images2015.cnblogs.com/blog/595892/201601/595892-20160110003415637-572238750.png)