Monthly Archives: December 2012

Testing Grails – A Collection of Useful Resources

This post is a collection of interesting resources to learn to test things better in Grails. It contains a bunch of tools, videos and other resources I found useful in learning to test Grails applications properly.

If I’ve missed something cool, please let me know in the comments.

Continue reading

Advertisements

Getting grails wrapper to work with grails 2.1.2

There is currently a bug in Grails 2.1.2 that breaks the grails wrapper functionality. ( GRAILS-9646 )

To work around this bug in all computers, you can get the grails wrapper to download a patched version of the grails 2.1.2 zip file. There is a fixed version of this zip file here: http://grails212.cloudfoundry.com/grails-2.1.2.zip

To use it, install the wrapper via the ‘grails wrapper’ command. Then, edit your wrapper/grails-wrapper.properties file to:

wrapper.dist.url=http://grails212.cloudfoundry.com/

To prepare your own patched file,

  • Download grails 2.1.2.
  • In the zip file, remove the source and docs jar files under grails-2.1.2\lib\org.codehaus.groovy\groovy-all\jars\
  • Save the zip file.
  • Upload the new zip file to a location accessible to the web.

This bug has already been fixed in grails core. But if you need to use the grails wrapper in the meantime, just use this mechanism.