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.

One thought on “Getting grails wrapper to work with grails 2.1.2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s