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.
Any pointers on how this might be done?