mac如何安装groovy
- 命令安装
sdkman! (The Software Development Kit Manager)
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
After installation is complete and you've made it your default version,test it with:
$ groovy -version
That's all there is to it!
- 下载安装包安装
http://groovy-lang.org/download.html
问题解决:
intellij idea中创建groovy项目是选择groovy jar包资源报错:
Looks like Groovy distribution in specified path is broken. Cannot determine version.
changed groovy-x.x.x.jar to groovy.jar and it works in IntelliJ 2016.1.2