From 3bf24e44cb1cc74dfdbbc6ed067c082222e37b3c Mon Sep 17 00:00:00 2001 From: Ben Evans Date: Mon, 20 Nov 2023 19:24:40 +0100 Subject: [PATCH 1/3] Add JAR Shading --- pom.xml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/pom.xml b/pom.xml index 5d0ce36..667e121 100644 --- a/pom.xml +++ b/pom.xml @@ -35,9 +35,12 @@ 0.8.8 3.11.0 3.3.0 + 3.5.1 3.1.0 3.2.0 3.3.0 + + com.redhat.insights.agent.shaded @@ -268,6 +271,67 @@ + + org.apache.maven.plugins + maven-shade-plugin + ${maven-shade-plugin.version} + + + + shade-jar-with-dependencies + + shade + + package + + false + false + true + true + shaded + + + org.apache + ${shade.prefix}.org.apache.shaded + + + org.slf4j + ${shade.prefix}.org.slf4j + + + org.wildfly.common + ${shade.prefix}.org.wildfly.common + + + org.wildfly.security + ${shade.prefix}.org.wildfly.security + + + org.jboss + ${shade.prefix}.org.jboss + + + com.fasterxml.jackson + ${shade.prefix}.com.fasterxml.jackson + + + + + + com.redhat.insights.agent.AgentMain + + + + + + false + + + + + + + com.diffplug.spotless spotless-maven-plugin From 19adfa0d9bc9033ea43ac26a4c86138db099461d Mon Sep 17 00:00:00 2001 From: Ben Evans Date: Tue, 21 Nov 2023 17:17:19 +0100 Subject: [PATCH 2/3] Update pom.xml Co-authored-by: Elliott Baron --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 667e121..b73a1fc 100644 --- a/pom.xml +++ b/pom.xml @@ -292,7 +292,7 @@ org.apache - ${shade.prefix}.org.apache.shaded + ${shade.prefix}.org.apache org.slf4j From a5d1ab295070c9cc88c23ea39950cbae7e0e1531 Mon Sep 17 00:00:00 2001 From: Ben Evans Date: Tue, 21 Nov 2023 17:21:32 +0100 Subject: [PATCH 3/3] Fix up pom per ebaron suggestions --- pom.xml | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 667e121..b45af2a 100644 --- a/pom.xml +++ b/pom.xml @@ -292,11 +292,7 @@ org.apache - ${shade.prefix}.org.apache.shaded - - - org.slf4j - ${shade.prefix}.org.slf4j + ${shade.prefix}.org.apache org.wildfly.common @@ -314,11 +310,41 @@ com.fasterxml.jackson ${shade.prefix}.com.fasterxml.jackson + + + META-INF/versions/9/ + META-INF/versions/9/${shade.prefix}/ + + + META-INF/versions/11/ + META-INF/versions/11/${shade.prefix}/ + + + META-INF/versions/17/ + META-INF/versions/17/${shade.prefix}/ + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + META-INF/MANIFEST.MF + **/module-info.class + META-INF/DEPENDENCIES + + + com.redhat.insights.agent.AgentMain + true