Skip to content

Upgrade to 2.4.x#25

Open
abdennour wants to merge 1 commit intolimcheekin:masterfrom
abdennour:patch-1
Open

Upgrade to 2.4.x#25
abdennour wants to merge 1 commit intolimcheekin:masterfrom
abdennour:patch-1

Conversation

@abdennour
Copy link

The following deprecated classes have been removed from Grails 2.4.x:

org.codehaus.groovy.grails.commons.ApplicationHolder
org.codehaus.groovy.grails.commons.ConfigurationHolder
org.codehaus.groovy.grails.plugins.PluginManagerHolder
org.codehaus.groovy.grails.web.context.ServletContextHolder
org.codehaus.groovy.grails.compiler.support.GrailsResourceLoaderHolder

If you or any plugins you have installed are using these classes you will get a compilation error. The problem can be rectified by updating to new plugins and using grails.util.Holders instead.

For example

application = org.codehaus.groovy.grails.commons.ApplicationHolder.application

to

application = Holders.grailsApplication


The following deprecated classes have been removed from Grails 2.4.x:
```groovy
org.codehaus.groovy.grails.commons.ApplicationHolder
org.codehaus.groovy.grails.commons.ConfigurationHolder
org.codehaus.groovy.grails.plugins.PluginManagerHolder
org.codehaus.groovy.grails.web.context.ServletContextHolder
org.codehaus.groovy.grails.compiler.support.GrailsResourceLoaderHolder
```

If you or any plugins you have installed are using these classes you will get a compilation error. The problem can be rectified by updating to new plugins and using grails.util.Holders instead.

For example

application = org.codehaus.groovy.grails.commons.ApplicationHolder.application 

to
```groovy
application = Holders.grailsApplication
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments