Reflection-related warning whose specifications have changed from JDK9 Groovy seems to support from 3.0. Reference Since the beta version is out, if you temporarily replace the groovy jar of the target library, the warning will disappear.
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.6/groovy-2.5.6.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
Replace groovy in the target library
<dependency> <groupId>nz.net.ultraq.thymeleaf</groupId> <artifactId>thymeleaf-layout-dialect</artifactId> <exclusions> <exclusion> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> </exclusion> </exclusions> </dependency> <!--Waiting for TODO official release--> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> <version>3.0.0-beta-1</version> </dependency>
It's just a warning, so it seems like it's a good idea to simply not issue a warning. Introductory notes when developing Spring Boot 2.0 applications in Java 10
It's still a beta version, so let's wait for the official release to the production environment!
https://issues.apache.org/jira/browse/GROOVY-8339 https://qiita.com/[email protected]/items/3d9f657196c1e941699a