RST
RST

Reputation: 602

grails ui plugin not working with grails 2.1.0

I wanted to test some of the features like expandablePannels etc before putting into another project, so I created a new project with a CRUD just so I can use grails ui

I am using Intellij 11, so I installed the plugin and was responded with the following error:

Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:yui:[2.6.0,)


IDEA hook: Grails not found!
| Error java.lang.NullPointerException
| Error     at org.jetbrains.groovy.grails.rt.Agent$2.run(Agent.java:99)
| Error     at java.lang.Thread.run(Thread.java:680)

Anyone else having issues using this plugin ?

Upvotes: 1

Views: 2110

Answers (2)

v1p
v1p

Reputation: 133

I ran into same problem while upgrading my app from grails 1.3.7 to 2.1.0. yui is a dependency for grails-ui plugin (as grails-ui needs bubbling, and bubbling needs yui :-/) This is what I did :

  1. Goto .grails/ivy-cache/org.grails.plugin/grails-ui folder
  2. Open the file ivy-(version).xml (ivy-1.2.3.xml)
  3. Look for this line : <dependency org="org.grails.plugins" name="yui" rev="**[2.6.0,)**" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
  4. Replace [2.6.0,) with 2.8.2, so final line will look like this : <dependency org="org.grails.plugins" name="yui" rev="2.8.2" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
  5. grails clean and grails compile

After this, this error was gone for good. Hope this helps.

UPDATE :

Thanks to predicador37 ; Much cleaner & groovy-way of doing this - Put this under plugins in BuildConfig.groovy :

compile ":yui:2.8.2.1"
compile (":grails-ui:1.2.3") {
     excludes 'yui'
}

Upvotes: 4

predicador37
predicador37

Reputation: 329

Yet easier:

Edit BuildConfig.groovy and change the lines of the plugin dependency by these:

compile ":yui:2.8.2.1"
    compile (":grails-ui:1.2.3") {
         excludes 'yui'
    }

Just in case it's useful to you.

Upvotes: 7

Related Questions