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.

  7. Girish says:

    List of suitable JAVA versions for each would be nice.
    Do you need help in compiling one?

Leave a Reply

Your email address will not be published.

Related Blog Posts
Natively Compiled Java on Google App Engine
Google App Engine is a platform-as-a-service product that is marketed as a way to get your applications into the cloud without necessarily knowing all of the infrastructure bits and pieces to do so. Google App […]
Building Better Data Visualization Experiences: Part 2 of 2
If you don't have a Ph.D. in data science, the raw data might be difficult to comprehend. This is where data visualization comes in.
Unleashing Feature Flags onto Kafka Consumers
Feature flags are a tool to strategically enable or disable functionality at runtime. They are often used to drive different user experiences but can also be useful in real-time data systems. In this post, we’ll […]
A security model for developers
Software security is more important than ever, but developing secure applications is more confusing than ever. TLS, mTLS, RBAC, SAML, OAUTH, OWASP, GDPR, SASL, RSA, JWT, cookie, attack vector, DDoS, firewall, VPN, security groups, exploit, […]