repaint-io / maven-tiles

Injecting maven configurations by composition rather than inheritance
155 stars 32 forks source link

JDK9+ logs illegal access warning #110

Closed maxxedev closed 4 years ago

maxxedev commented 4 years ago

When building with Java9+, this warning is logged:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 \
 (file:....m2/repository/org/codehaus/groovy/groovy/2.5.8/groovy-2.5.8.jar) \
 to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of \
 org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal \
 reflective access operations
WARNING: All illegal access operations will be denied in a future release 

Groovy version needs to be upgraded?

Also see #108

rvowles commented 4 years ago

Yes, 3.x

On Thu, Apr 30, 2020 at 3:21 PM maxxedev notifications@github.com wrote:

When building with Java9+, this warning is logged:

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 \ (file:....m2/repository/org/codehaus/groovy/groovy/2.5.8/groovy-2.5.8.jar) \ to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int) WARNING: Please consider reporting this to the maintainers of \ org.codehaus.groovy.vmplugin.v7.Java7$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal \ reflective access operations WARNING: All illegal access operations will be denied in a future release

Groovy version needs to be upgraded?

Also see #108 https://github.com/repaint-io/maven-tiles/issues/108

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/repaint-io/maven-tiles/issues/110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANTWAOMMV5FGHPHQ4ZIODRPDVFDANCNFSM4MVD65NQ .

--

Richard Vowles, Full stack - from Kubernetes, through Node & Java, Web and Mobile development in Flutter - software developer for hire!

ph: +64275467747

talios commented 4 years ago

@maxxedev We've just release 2.17 which uses Groovy 3.0.4 so this should no longer occur.

maxxedev commented 4 years ago

Thank you!!