Upgrade Grails

To upgrade grails on a project I download the latest distribution binary zip from http://grails.org/Download and unzip it over my old installation on c:\grails to override my older installation.

On starting Netbeans it automatically downloads the updated dependencies:-

Welcome to Grails 1.3.0 – http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: c:\grails

Base Directory: C:\Projects\ProjectEditor
Resolving dependencies…
Downloading: c:\grails\lib\gpars-0.9.jar …
Download complete.
Downloading: c:\grails\dist\grails-docs-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-bootstrap-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-scripts-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-core-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-resources-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-web-1.3.0.jar …
Download complete.
Downloading: c:\grails\lib\groovy-all-1.7.2.jar …
Download complete.
Downloading: c:\grails\dist\grails-crud-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-gorm-1.3.0.jar …
Download complete.
Downloading: c:\grails\dist\grails-spring-1.3.0.jar …
Download complete.
Downloading: c:\grails\lib\junit-4.8.1.jar …
Download complete.
Downloading: c:\grails\dist\grails-test-1.3.0.jar …
Download complete.
Dependencies resolved in 63984ms.

I then run the upgrade command on individual projects:-

grails upgrade

Running script c:\grails\scripts\Upgrade.groovy

Environment set to development

                WARNING: This target will upgrade an older Grails application to 1.3.0.

                Are you sure you want to continue?

                                    (y, n)

NOTE: Your application currently expects grails version [1.2.2], this target will upgrade it to Grails 1.3.0 …

y

   [delete] Deleting directory C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\resources

     [copy] Copying 1 file to C:\Projects\ProjectEditor\web-app\WEB-INF

     [copy] Copying 1 file to C:\Projects\ProjectEditor\web-app\WEB-INF

     [copy] Copying 4 files to C:\Projects\ProjectEditor\web-app\WEB-INF\tld

Installing zip c:\grails\plugins\grails-hibernate-1.3.0.zip… …

    [mkdir] Created dir: C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins\hibernate-1.3.0

    [unzip] Expanding: c:\grails\plugins\grails-hibernate-1.3.0.zip into C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins\hibernate-1.3.0

Installed plugin hibernate-1.3.0 to location C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins/hibernate-1.3.0. …

Resolving plugin JAR dependencies …

Executing hibernate-1.3.0 plugin post-install script …

Plugin hibernate-1.3.0 installed

Installing zip c:\grails\plugins\grails-tomcat-1.3.0.zip… …

    [mkdir] Created dir: C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins\tomcat-1.3.0

    [unzip] Expanding: c:\grails\plugins\grails-tomcat-1.3.0.zip into C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins\tomcat-1.3.0

Installed plugin tomcat-1.3.0 to location C:\Documents and Settings\vsanzgiri\.grails\1.3.0\projects\ProjectEditor\plugins/tomcat-1.3.0. …

Executing tomcat-1.3.0 plugin post-install script …

Plugin tomcat-1.3.0 installed

Plugin provides the following new scripts:

——————————————

grails tomcat

Please make sure you view the README for important information about changes to your source code. …

Project upgraded

Advertisements

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