Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Grails 2.3.x Support JDK 8

Tags:

It seems like this questions should be easy but the installation requirements for Grails (http://www.grails.org/Installation) haven't been updated in 2 years. Does anyone know for sure is Grails 2.3 will run on JDK 8?

like image 379
SGT Grumpy Pants Avatar asked Mar 19 '14 20:03

SGT Grumpy Pants


2 Answers

As noticed by heikkim this ticket which is now closed suggests that support for Java 8 will start on Grails 2.4:

http://jira.grails.org/browse/GRAILS-11063 (title: Java 8 support)

like image 67
rosenfeld Avatar answered Oct 30 '22 20:10

rosenfeld


Tried an app (built on v2.3.7) on JDK 8 and hit a road block with database-migration plugin while compiling the app. If that particular plugin is commented out then everything looks good during compilation.

Running the app (with a sample controller) throws an error related to withFormat method from grails-plugin-mimetypes. Looking into it.

Raised an improvement defect for grails-database-migration plugin. I think this may not be required as well but making grails JDK8 compatible might need changes in grails-core. However, I have not checked with latest milestone build for Grails 2.4 which might already be taking care of those compatibility issues.

like image 43
dmahapatro Avatar answered Oct 30 '22 19:10

dmahapatro