1. 程式人生 > >Groovy入門筆記

Groovy入門筆記

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.
解決方案:https://stackoverflow.com/questions/43031763/intellij-idea-wont-load-groovy-found-on-my-disk changed groovy-x.x.x.jar to groovy.jar and it works in IntelliJ 2016.1.2