In a java 9 project, I would like to require vertx.webwhich is the automatic name for the module io.vertx:vertx-web:3.4.2. Only at runtime do I get the following error.
Error occurred during initialization of boot layer
java.lang.module.FindException: Unable to derive module descriptor for /Users/user/.gradle/caches/modules-2/files-2.1/io.vertx/vertx-web/3.4.2/eee42405acff13d37eb2a62256189d419f91aa4d/vertx-web-3.4.2.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class moduleFactory = io.vertx.groovy.ext.web.VertxPropertiesModuleFactory not in module
Vertx-web seems to be using Groovy Extension Modules . That is why the file exists META-INF/services/org.codehaus.groovy.runtime.ExtensionModule. Java9 does not read this file correctly for service loading .
Is there a way to ignore this utility file as it is dependent and I cannot change it?
source
share