How do I set up Grails with IntelliJ IDEA? I have the ultimate edition. sdkman
installed Grails in /home/user/.sdkman/candidates/grails/current/bin/grails
but if I choose that folder as the SDK, IDEA says: The selected directory is not a valid home for Grails SDK
How do I set up an IDEA project with Grails?
grails -version
from the terminal provides me the following:
| Grails Version: 3.2.8
| Groovy Version: 2.4.10
| JVM Version: 1.8.0_121
So it's definitely there..
There is no need to select a grails SDK with your version. Import a project from existing sources -> double click the build.gradle
file - it will import and setup everything correctly - Assuming IntelliJ 2016.x or 2017.x
Video of process here: http://guides.grails.org/grails-quickcasts-developing-grails-3-applications-with-intellij-idea/guide/index.html
Edit: I see what your saying now, you can't select current
in sdkman - use /home/user/.sdkman/candidates/grails/3.2.8