Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Grails 3.0 Error

I am trying to create a new Grails project with IntelliJ IDEA using the new grails-3.0 M1 SDK but when running create-app I am getting the following error:

Error: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter

With previous grail versions works fine (I got the environment variables configured correctly)

Any workarounds about it?

Thanks

like image 840
Alqueraf Avatar asked Feb 01 '15 09:02

Alqueraf


2 Answers

Are you trying to use the grails integration in idea? Grails 3 is so different, I doubt that will work. Just create-app from the command line, and import the project into idea from the build.gradle file that creates.

Until it's updated to work with grails 3, you'll need to use the command line or the grails shell to issue commands

Don't forget, you're trying a milestone release (not even a beta, or release candidate), so you're living on the cutting edge, and tooling might take a bit to catch up with you ;-)

like image 94
tim_yates Avatar answered Sep 18 '22 12:09

tim_yates


Grails 3 uses gradle. So create your app with grails create-app, and you can open the project as a gradle one. You loose the grails view, but it works.

like image 45
olikaf Avatar answered Sep 18 '22 12:09

olikaf