HADOOP-18916. Exclude all module-info classes from uber jars (#6131)

Removes java9 and java11 from all modules pulled into the hadoop-client
and hadoop-client-minicluster modules.

Contributed by PJ Fanning
This commit is contained in:
PJ Fanning 2023-10-13 20:01:44 +01:00 committed by GitHub
parent 9bc159f4ac
commit 3d7b58d8a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 26 deletions

View File

@ -748,23 +748,12 @@
</excludes> </excludes>
</filter> </filter>
<filter> <filter>
<artifact>com.fasterxml.jackson.*:*</artifact> <artifact>*:*</artifact>
<excludes> <excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
<exclude>META-INF/versions/11/module-info.class</exclude> <exclude>META-INF/versions/11/module-info.class</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>com.google.code.gson:gson</artifact>
<excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.commons:commons-compress</artifact>
<excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
</excludes>
</filter>
<!-- Mockito tries to include its own unrelocated copy of hamcrest. :( --> <!-- Mockito tries to include its own unrelocated copy of hamcrest. :( -->
<filter> <filter>

View File

@ -239,23 +239,12 @@
</excludes> </excludes>
</filter> </filter>
<filter> <filter>
<artifact>com.fasterxml.jackson.*:*</artifact> <artifact>*:*</artifact>
<excludes> <excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
<exclude>META-INF/versions/11/module-info.class</exclude> <exclude>META-INF/versions/11/module-info.class</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>com.google.code.gson:gson</artifact>
<excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.commons:commons-compress</artifact>
<excludes>
<exclude>META-INF/versions/9/module-info.class</exclude>
</excludes>
</filter>
</filters> </filters>
<relocations> <relocations>