Micronaut and the Groovy Grails

Grails 4 – Groovy goes serverless with Micronaut

Chris Stewart
Grails goes serverless
© Shutterstock / Dmitry Skutin

It’s been a long time since Grails got a big update – over four years. Grails 4 doesn’t just update the minimum dependencies and improve startup time and memory use, but also brings Micronaut into the spotlight.

The co-founders of Grails and Micronaut, Graeme Rocher and Jeff Scott Brown, also lead the Grails and Micronaut development team. Over the last four years, the team has worked hard on this update. As a result, there are some pretty significant changes and new functionalities.

The new Grails

First thing’s first – Grails’ minimum dependencies have changed with this update. Java 8 and Groovy 2.5 are now basic requirements, as are Spring 5.1, Spring Boot 2.1, Hibernate 5.4 and Gradle 5.

What users of Groovy and Micronaut will find really interesting is that this new framework version brings Micronaut’s features to Grails. Micronaut is now the HTTP client for use within Grails applications. And as Thomas Buss recently wrote in his blog for JAX London, one of Micronaut’s benefits is its startup times, which are such that it opens up the serverless universe to Java developers. This could make Grails 4 something of real interest – Groovy goes serverless.

SEE ALSO: 3 tips for serverless success in 2019

Speaking of which, Grails 4’s own startup times and memory consumption have been vastly improved, not least because of changes to Spring Boot 2.1 and the migration of some of Grails’ internal workings to Micronaut.

There’s more detailed information about Grails 4 on the Object Computing website, and in the release information on GitHub.

Chris Stewart
Chris Stewart is an Online Editor for He studied French at Somerville College, Oxford before moving to Germany in 2011. He speaks too many languages, writes a blog, and dabbles in card tricks.

Inline Feedbacks
View all comments