From 3d7b58d8a50b672e54d8fd08cfe7394b724efc0f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 13 Oct 2023 20:01:44 +0100 Subject: [PATCH] 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 --- .../hadoop-client-minicluster/pom.xml | 15 ++------------- .../hadoop-client-runtime/pom.xml | 15 ++------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml b/hadoop-client-modules/hadoop-client-minicluster/pom.xml index 10c6d41dd6cce..9c9df2216fe8e 100644 --- a/hadoop-client-modules/hadoop-client-minicluster/pom.xml +++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml @@ -748,21 +748,10 @@ - com.fasterxml.jackson.*:* - - META-INF/versions/11/module-info.class - - - - com.google.code.gson:gson - - META-INF/versions/9/module-info.class - - - - org.apache.commons:commons-compress + *:* META-INF/versions/9/module-info.class + META-INF/versions/11/module-info.class diff --git a/hadoop-client-modules/hadoop-client-runtime/pom.xml b/hadoop-client-modules/hadoop-client-runtime/pom.xml index 60790d932edaf..1391da71ffd3c 100644 --- a/hadoop-client-modules/hadoop-client-runtime/pom.xml +++ b/hadoop-client-modules/hadoop-client-runtime/pom.xml @@ -239,21 +239,10 @@ - com.fasterxml.jackson.*:* - - META-INF/versions/11/module-info.class - - - - com.google.code.gson:gson - - META-INF/versions/9/module-info.class - - - - org.apache.commons:commons-compress + *:* META-INF/versions/9/module-info.class + META-INF/versions/11/module-info.class