upgrade grails version

  • http://docs.grails.org/3.2.3/guide/gettingStarted.html#downloadingAndInstalling
    • download new grails and extract it
    • modify the env variable: GRAILS_HOME & path for new grails
    • go to the app
      • change the gradle.properties => grailsVersion & gradleWrapperVersion
      • change build.gradle =>
        • create a dummy app
        • get this file, compare it with the old file
        • update it with the difference
      • move BootStrap.groovy from grails-app/init to grails-app/init/appName/
    • ERROR grails.boot.config.tools.ClassPathScanner – The application defines a Groovy source using the default package. Please move all Groovy sources into a package.
      • run grails console
      • run following in the console to find out which doesn’t in package
        • ctx.grailsApplication.allClasses.findAll { !it.getPackage() }*.name
      • move them to package
This entry was posted in Grails. Bookmark the permalink.

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