How to switch to Grails 1.2?

Hi all,

I have a Grails 1.1.1 application in IntelliJ, which I want to port to 1.2. But how do I tell IntelliJ to use 1.2 instead of 1.1.1?? I used to be able to select the Grails SDK, but I cannot find that option, and I also cannot find anything in the Framework support. I've added Grails as a global library, but still, it's not used.. How do I fix this?

Thanks, Erik

6 comments
Comment actions Permalink

You can go to module dependencies, remove the old Grails library reference and add the new one. We'll create a more usable action for this, sorry for inconvenience

0
Comment actions Permalink

Okay, thanks for the reply. I liked the old approach better, where you could choose which Grails SDK to use.


PS, To be honest, and not meant as a complaint, but maybe something to think about, I get IntelliJ less and less regarding framework support. Sometimes you have to add a facet, sometimes a library, and sometimes add 'framework support', which might or might not be the same as adding a library. I liked things better when they could be done in a uniform way by just adding a facet.

0
Comment actions Permalink

PS2: after the switch to Grails 1.2, everything seemed to work quite well. Nicely done! I hope you'll find some time to fix/extend the Grails view to make it even better!

0
Comment actions Permalink

Hmmm, sorry, it seems I was a bit to fast replying that everything works, cause it doesn't. At the moment, all my controllers are borked, because of some metaClass not implemented error: http://grab.by/1vs9

0
Comment actions Permalink

Well, I am also trying to switch to Grails 1.2.

I defined a Global library "grails-1.2.0" and added all the jars in grails-1.2.0/lib to it.

When I try to run a Grails unit tests, I get the error "Grails SDK not configured."

How do I configure the SDK?

Like the other writer, Intellij can't find things like GrailsUnitTestCase.

Things were working fine with the previous version of Grails.

Please settle on a way to configure Grails, it is really confusing.

0
Comment actions Permalink

Solution found!

Forgot to add the grails-1.2.0/dist jars!

So the complete list of jars added to the "grails-1.2.0" are all the jars in grails-1.2.0/dist and grails-1.2.0/lib.

I should have looked at my definition of the "grails-1.1.2" global library first.

0

Please sign in to leave a comment.