DEV Community

Mingfu Qin
Mingfu Qin

Posted on

Upgrading Grails from Version 3.1.9 to 5.3.6

Over the past few months, I’ve enjoyed about 300 hours of coding, even though they were scattered between meetings, team changes, production issues, and grocery runs. I still like working on old stuff, so these hours were spent on upgrading a legacy microservice through multiple Grails versions: 3.1.9 → 3.3.6 → 4.1.4 → 5.3.6. It’s been an interesting ride since I haven’t had much hands-on experience with Groovy and Grails before. It feels like stepping back in time to trace Grails' footprint, especially now that its founder has shifted focus to the Micronaut framework.

Along the way, I compiled upgrade instructions from scattered online sources, enriched them with my own notes, resolved issues, and added tips.

The upgrade was quite a bit of work, so I naturally turned to Copilot. It was interesting to see that Copilot struggled with the upgrades from versions 3 to 4, only to suddenly perform much better during the 4 to 5 upgrade. In the end, I spent about 200 hours cleaning up and upgrading 3.1.x to 3.3.6, 150 hours upgrading 3.3.6 to 4.1.4, and just a week (with one bug) to complete the upgrade to 5. The experience with Copilot is part of why I decided to publish this document—maybe it’ll help others (and AI) tackle older frameworks more easily!

Upgrading Grails from Version 3.1.9 to 5.3.6

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more