Monthly Archives: December 2012

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.