micronaut-examples icon indicating copy to clipboard operation
micronaut-examples copied to clipboard

Petstore won't build on java 11

Open viniciusccarvalho opened this issue 4 years ago • 1 comments

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.

viniciusccarvalho avatar May 20 '20 19:05 viniciusccarvalho

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

kaden-weber avatar Jul 10 '20 21:07 kaden-weber