I installed groovy through sdkman on mac. When i try to create a new groovy project in intellij, it asks for groovy library location. Where can i find the installed groovy?
Asked
Active
Viewed 1.5k times
21
-
4Normally it should be under `/users/
/.sdkman/groovy/current` or `/users/ – dmahapatro Feb 21 '16 at 04:35/.sdkman/groovy/ `. Mark that `.sdkman` might not be visible in IntelliJ by default, but tracing through the directory structure should be possible. -
@dmahapatro you are right. It is not visible. It is in /Users/Ramisetti/.sdkman/candidates/groovy. Thank you. – Rax Feb 21 '16 at 05:45
-
7Whenever you have this problem, use the `which` shell command. `which groovy` will tell you the answer – tim_yates Feb 21 '16 at 08:44
-
2I suggest you don't use `current` in the project config in IntelliJ as that will change which GDK it points to over time. Rather use `/Users/
/.sdkman/candidates/groovy/ – Todd W Crone Feb 21 '16 at 22:15` for the specific version your project needs.
4 Answers
25
I ran into similar issue. By using
/Users/<username/.sdkman/candidates/groovy/current
or
/Users/<username/.sdkman/candidates/groovy/<version>
worked for me.

KneeLess
- 551
- 6
- 9
-
39
-
2CMD+SHIFT+G also appears to work and was the solution recommended by JetBrains. – icfantv Jan 11 '18 at 21:59
15
Adding the answer that solved my problem (thanks to ThomasW comment)
When dialog box is opened you can click CMDSHIFT. and this allows you to pick the hidden folder in the open dialog box.
Then you can use:
/Users/<username>/.sdkman/candidates/groovy/current

Federico Piazza
- 30,085
- 15
- 87
- 123
0
You may not be able to find groovy path with which
command.
After installation of sdkman on linux-like systems Mac OSX, Linux, Cygwin, Solaris and FreeBSD,
First, run $ source "$HOME/.sdkman/bin/sdkman-init.sh"
, then you will be able to access the installed development kits.
Namely, if you type 'which groovy'
it should show the path, and you can invoke other SDK commands.

Memin
- 3,788
- 30
- 31