micronaut-projects / micronaut-examples

Example Projects Using Micronaut
530 stars 255 forks source link

Petstore won't build on java 11 #78

Open viniciusccarvalho opened 4 years ago

viniciusccarvalho commented 4 years ago

I was trying to build the petstore demo, and the comments app throws an error when using JDK 11:

WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/Users/vinnyc/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.5.1/e9628b90c92dcfc7cfaf2f987a2dd2fdabbb3dd5/groovy-2.5.1.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)

I was able to make it work with JDK8, would be nice to put as a requirement or have a fix in place for this.

kaden-weber commented 4 years ago

Thanks @viniciusccarvalho, switching to JDK8 fixed this for me as well.