Migrating to Grails 2.4.3

A lot has changed since I last used Grails (v1.3.2). I had developed a project that I want to use with latest Grails version. The migration isn't easy. So here's a list of steps to perform the migration (cf. http://grails.org/doc/2.4.x/guide/upgradingFrom23.html):
  •  Change Grails version required by application in application.properties.
app.grails.version=2.4.3
  •  Dependencies are no longer managed in application.properties; instead BuildConfig.groovy is used. Make sure Maven repositories are NOT commented.
  repositories {
        grailsPlugins()
        grailsHome()
        grailsCentral()

        // uncomment the below to enable remote dependency resolution
        // from public Maven repositories
        mavenLocal()
        mavenCentral()
                      }
  • Dependencies naming follows Maven style - groupId:artifactId:version. groupId of "org.grails.plugins" seems to work in most of the cases.
 dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.

        // runtime 'mysql:mysql-connector-java:5.1.5'
    build 'org.grails.plugins:tomcat:7.0.55'
    compile "org.grails.plugins:commentable:0.8.1"
    compile "org.grails.plugins:rateable:0.7.1"
    compile "org.grails.plugins:taggable:1.0.1"
    compile "org.grails.plugins:google-analytics:2.3.3"
    compile "org.grails.plugins:hibernate4:4.3.5.5"
    compile "org.grails.plugins:richui:0.8"
    compile "org.grails.plugins:yui:2.8.2.1"
    compile "org.grails.plugins:spring-security-core:2.0-RC4"
    compile "org.springframework.security:spring-security-openid:3.2.5.RELEASE"
 }


Comments

Popular posts from this blog

GNU Emacs as a Comic Book Reader

Mozilla Readability in GNU Emacs

Data Visualization with GNU Emacs