Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Tucker Pelletier
Tucker Pelletier

Posted on

     

Grails 3.3.10 to 4.0.2 Postmortem

The Grails 3 to 4 upgrade was nowhere near as daunting as upgrading from 2.5.x. However, I thought I would do a postmortem for the upgrade just the same. This is for a project that has about 80,000 lines of Groovy/Grails, and 40,000 lines of GSP, which is quickly becoming deprecated for Angular.

Tasks:

  • Custom password salt implementation finding temp workaround then replacing, with bcrypt.
  • Removing a duplicate class wonder why this didn't cause issues before
  • Removed a class that was just a script, which means it had a main method which caused errors
  • Fixed unit test the fall back for the mixins didn't seem to work anymore
  • Gorm/HQL had to replace all ? params with positional ?0,?1,..., etc.
  • Had to add enabled = true to war task
  • groovy.json.internal.LazyMap was being used with instanceof had to update to org.apache.groovy.json.internal.LazyMap
  • Many instances where hibernate proxies were not being unwrapped. Fixed with GrailsHibernateUtil.unwrapIfProxy or fetch:'join' depending on circumstances
  • DB migration plugin no longer has access to system properties so I had to add a fallback candidate to the config.
  • Actuators and h2 console changed so I had to update the security around them
  • Had to move where I defined the sourceSets for the resources for the db migrations
  • Had to exclude old converters from grails-datastore-rest-client, which we should upgrade
  • Had to fix spring security ldap:https://www.baeldung.com/spring-boot-security-autoconfigurationspring.autoconfigure.exclude=['org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration', 'org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration']

Other resources:

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

A Groovy, Grails, Micronaut enthusiast.
  • Location
    Massachusetts
  • Joined

More fromTucker Pelletier

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp