Hi,
I’ve been using the gradle shadow plugin to shade some lucene 7 dependencies, which are multi-release jars, doing something along the lines of relocating ‘org.apache.lucene’ to ‘shadow.org.apache.lucene7’.
This has been working fine while I’ve been using Java 8, as the META-INF/versions class files are not used. Now that I’m migrating to Java 9 and 10, I am having trouble with the Java version specific class files located under META-INF/versions which are not being relocated.
I can’t work out how to get the shadow plugin to relocate the class files under META-INF/versions.
Just to clarify, the release specific class files themselves under META-INF/versions appear to be correctly relocated, but the enclosing path hierarchy is not, so for example, for the Java 9 specific class:
org.apache.lucene.util.CharsRef, the Java 9 version in the original lucene jar is located at;