Grails resources plugin -
The grails and the resource is trying to get my head around the plugin. I have read that it is already installed and I have also read that it is not and you need to add it as a runtime plugin in the configuration file. So the question is right? When I try to add it to my Config.groovy file, I get an error.
| Error error packaging application: Error loading error Config.groovy: no sign of method: groovy.util.ConfigSlurper $ _parse_closure5.runtime () applies for logic type: (java.lang.String) Value: [: resource : 1.2]
Config.groovy file
grails {
plugins {runtime}: Resources: 1.2 'runtime': Cached-Resource: 1.0 "Runtime": yui-minify-resources: 0.1.5 "}}
Updated post: I apologize after reading that it should be in my build config but Now get a different error
2014-02-17 15: 03: 44,111 [local host-startStop-1] error payment-gateway: plugins.DefaultGrailsPluginManager - dynamic methods for error plugin [resources: 1.1.6] configure: com / yahoo / platform / Yui / compressor / JavaScriptCompressor java.lang.NoClassDefFoundError: com / yahoo / platform / Yui / compressor / JavaScriptCompressor java.lang.Class.privateGetDeclaredMethods (Class.java:2475) java.lang.Class on. org.codehaus on getDeclaredMethods (Class.java:1818) org.codehaus.groovy.util.LazyReference.getLocked (LazyReference.java:46) org.codehaus.groovy.util.LazyReference.get (LazyReference.java:33 ) At .groovy.util.LazyReference.getLocked (LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get (LazyReference.java:33) com.bl Ockconsult.yuiminifyresources.YuiJsMinifyResourceMapper.map (YuiJsMinifyResourceMapper.groovy: 28) at org.grails.plugin.resource.mapper.ResourceMapper.invoke (ResourceMapper.groovy: 13 9) on org.gr ails.plugin.resource.mapper.ResourceMapper .invokeIfNotExcluded (ResourceMapper.groovy: 128) on org.grails.plugin.resource.ResourceProcessor.applyMappers (ResourceProcessor.groovy: 587) on org.grails.plugin.resource.ResourceProcessor.prepareResource (ResourceProcessor.groovy: 533) at org. Grails.plugin.resource.ResourceProcessor $ _prepareSingleDeclaredResource_closure12.doCall (ResourceProcessor.groovy: 602) org.grails.plugin.resource.util.ResourceMetaStore.addDeclaredResource (Resources at MetaStore.groovy: 29) .grails.plugin.resource.ResourceProcessor in the organization .prepareSingleDeclaredResource (ResourceProcessor.groovy: 600) org.grails.plugin.resource.ResourceProcessor $ _prepareResourceBatch_closure14.doCall (ResourceProcessor.groov) y: 625) on org.grails.plugin.resource.ResourceProcessorBatch.each (ResourceProcessorBatch.groovy: 8): On org.grails.plugin.resource.ResourceProcessor.prepareResourceBatch (621 ResourceProcessor.groovy) on org.grails.plugin.resourc e.ResourceProcessor.resourcesChanged (ResourceProcessor.groovy: 804) on org.grails.plugin.resource.ResourceProcessor.loadModules (ResourceProcessor.groovy: 800) on OrgkgrailskpluginkresourcekResourceProcessorkreloadAll (ResourceProcessorkgroovy: L056) on java.util.concurrent.FutureTask.run (FutureTask.java:138) on java.util.concurrent.FutureTask $ Sync.innerRun (FutureTask.java:303): ResourcesGrailsPlugin $ _closure3.doCall (172 ResourcesGrailsPlugin.groovy) on java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (ThreadPoolExecutor.java:895) java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:918) at java.lang.Thread.run (on Thread.java: 680) due to: java.lang.Class NotFoundException: java.net.URLClassLoader com.yahoo.platform.yui.compressor.JavaScriptCompressor (URLClassLoader.java at $ 1.run (URLClassLoader.java:202 on java.net.URLClassLoader.findClass): 190) java.lang.ClassLoader At .loadClass (ClassLoader.java:306) on Java.lang.ClassLoader.loadClass (ClassLoader.java ... 47) ... 26 more
As you do for your plugin, your BuildConfig.groovy
not Config.groovy
Use plug-ins to install plug-ins, add it to your BuildConfig.groovy:
plugins {runtime}: resource: 1.2 '}
Comments
Post a Comment