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
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
Thanks Søren! I’ll update the list the next chance I get. I’ll look into the script idea as well.
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.
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.
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
Thanks Michael, I’ve updated the list!
Thank you for this list. It’s super helpful!
Hi ,
Which JAVA version will be supported for Grails 2.3.5 with Groovy 2.4 ?
Is it compartible with JAVA 8?
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.
Only missing the list with the version of java for each version of groovy.
And would be good if you may add GORM version as well.