IntelliJ IDEA 2017.2.6
It should work with other versions too.
I tried to Config groovy SDK to use in IntelliJ IDEA ... but you need specific path which is .. something like that: /usr/local/Cellar/groovy/x.y.z/ libexec but I couldn't see usr folder.
As it turns out you need to use a magical shortcut to enable a view of hidden files/folder in Finder on Mac.
- Go to Project Structure
- Go to Global Libraries
- Press +
- Select Java
- In Finder, press ⌘⇧. ( Command key, SHIFT key dot key a the same time ) to enable 'view hidden files' mode
- Go to top level (MachintoshHD)
- go to /usr/local/Cellar/groovy/x.y.z/libexec and press open if you don't see usr folder... perform step 5 (and ensure you have all privileges required)
- Press create
- Done :)