May 14, 2015

List of Groovy versions for each version of Grails

Recently when trying to debug an issue I was having in Grails, I found that the root cause was actually a Groovy bug. After checking the bug tracker, I discovered that the bug was fixed in a future version of Groovy. Unfortunately this would mean having to update Grails, but I couldn’t find a definitive answer on WHICH Groovy version went with a specific version of Grails. Turns out there is no single source that lists this data, even independently for each version. I was able to find a blog post that covered up to Grails 1.3.7 but it hadn’t been updated since 2010. Using that post as a starting point, I decided to compile a list of the Grails-Groovy versions, and the documentation/source of where I gathered the info. I started with Grails 1.2.0, and only included full releases.

If there are any errors/updates, please let me know. I’ll do my best to keep this info up-to-date!

Igor Shults

About the Author

Object Partners profile.

One thought on “List of Groovy versions for each version of Grails

  1. Soeren Berg Glasius says:

    Judging from the groovy-all pom in grails 2.5.0, groovy is 2.4.3, and for grails 2.4.5 it is groovy 2.3.11

    I checked my GVM directory, so perhaps making a short Groovy script that would download the latest grails versions would reveal this… Also, you could probably download the grails pom and look for the groovy-all dependency.

    But good job and good idea!

    /Søren

    1. Igor Shults says:

      Thanks Søren! I’ll update the list the next chance I get. I’ll look into the script idea as well.

  2. Paco Zarate says:

    Igor thank you for this!!
    I was looking for something updated since 2 years ago!! Is it ok to propose it for Grails documentation (maybe for the release notes)?

    Also, do you know how we can display the spring version? I have an old app that depends on spring 3 and I am not quite sure to which version I can upgrade.

    1. Igor Shults says:

      Hi Paco – Yeah, feel free to propose it! I’m glad it’s helpful.

      I’m out of the country currently, but I’ll look into getting Spring versions (possibly using a method similar to the one Søren suggested above) when I get back. I’ll post it if I end up having any luck.

  3. Michael Glockenstein says:

    According to groovy-starter.conf:
    grails 2.3.11 -> groovy 2.1.9 (and so all 2.3.x with x>=2)
    grails 2.4.4 -> groovy 2.3.7

    1. Igor Shults says:

      Thanks Michael, I’ve updated the list!

      1. codemonkey says:

        Thank you for this list. It’s super helpful!

  4. djavaphp says:

    Hi ,
    Which JAVA version will be supported for Grails 2.3.5 with Groovy 2.4 ?
    Is it compartible with JAVA 8?

    1. Igor Shults says:

      Hey sorry for the late reply. It looks like Grails didn’t officially get Java 8 support until 2.4 (https://jira.grails.org/browse/GRAILS-11063), but that’s based on the default Groovy version. Groovy itself is compatible with Java 8 starting with version 2.3 (http://www.groovy-lang.org/releasenotes/groovy-2.3.html), so it sounds like you *should* be OK, but the problem is that the individual plugins you use may not be compatible with Java 8, since they’re based on the Grails version, and not the Groovy version (for example the database migration plugin: https://jira.grails.org/browse/GPDATABASEMIGRATION-171). So it really depends on your plugins and individual use cases, I believe.

  5. Alex says:

    Only missing the list with the version of java for each version of groovy.

  6. Bilal Ahmed Yaseen says:

    And would be good if you may add GORM version as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Blog Posts
Explore your Kubernetes cluster with k9s
If you use Kubernetes, you have probably become adept at crafting commands with kubectl (pronounced “koob-cuddle”). Sure, we prefer to interact with the cluster with declarative configs via a deployment pipeline, but sometimes you need […]
Deploying NextJs v9 on Google App Engine
NextJS v9 offers new exciting features like “File system-based dynamic routing” and “Automatic Static Optimization”, but deploying on Google App Engine introduced some new challenges.  In this post I will walk you through the steps. […]
Managing your Helm deployments with Helmfile
As we’ve been using Kubernetes to build software delivery platforms for our clients, we’ve found Helm to be a reasonable solution to templating and managing deployments to Kubernetes.  Although templating alternatives such as Kustomize have […]
AWS CodeBuild Test Reports for Gradle builds
Although AWS documentation has instructions for adding Test Reports for a maven build they currently lack instructions for a gradle build. You can find the maven instructions here: https://aws.amazon.com/blogs/devops/test-reports-with-aws-codebuild/ Assuming you have your gradle wrapper […]