22

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?

SGT Grumpy Pants
  • 4,118
  • 4
  • 42
  • 64
  • Good question. Have you tried it yet? – dmahapatro Mar 19 '14 at 21:41
  • No, I haven't but I'm assuming that it will probably work if I try it; what I'm wondering is if Java 8 is supported not if it work. I'm wondering if the VMWare and the Grails community is actively using and testing Grails on Java 8. – SGT Grumpy Pants Mar 20 '14 at 00:02

2 Answers2

20

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)

Community
  • 1
  • 1
rosenfeld
  • 1,730
  • 15
  • 19
  • 2
    UPDATE: The ticket is closed (on 15th of May) but Java8 support is apparently for Grails 2.4 only. – heikkim Jul 03 '14 at 08:24
4

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.

dmahapatro
  • 49,365
  • 7
  • 88
  • 117