From 0fb97f54e0581bf707b730782bfda71af433eb4f Mon Sep 17 00:00:00 2001 From: Piotrek Zygielo Date: Sat, 7 Dec 2024 22:03:36 +0100 Subject: [PATCH] Exclude grizzly artifacts bundled into grizzly-core already Currently `grizzly-core` bundles both `grizzly-framework` and `grizzly-portunif` AND declares them as dependencies in default scope (compile). This helps to avoid on `shoal-gms-impl` usage: ``` [ERROR] Duplicate classes found: [ERROR] [ERROR] Found in: [ERROR] org.glassfish.grizzly:grizzly-framework:jar:4.0.1:compile [ERROR] org.glassfish.grizzly:grizzly-core:jar:4.0.1:compile [ERROR] Duplicate classes: [ERROR] org/glassfish/grizzly/memory/AbstractMemoryManager$TrimAware.class [ERROR] org/glassfish/grizzly/ssl/SSLBaseFilter$4.class ... [ERROR] [ERROR] Found in: [ERROR] org.glassfish.grizzly:grizzly-core:jar:4.0.1:compile [ERROR] org.glassfish.grizzly:grizzly-portunif:jar:4.0.1:compile [ERROR] Duplicate classes: [ERROR] org/glassfish/grizzly/portunif/finders/HttpProtocolFinder.class [ERROR] org/glassfish/grizzly/portunif/PUFilter$SuspendedContextCopyListener.class ... ``` --- gms/impl/pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gms/impl/pom.xml b/gms/impl/pom.xml index 7ec2291..44d2884 100644 --- a/gms/impl/pom.xml +++ b/gms/impl/pom.xml @@ -49,6 +49,16 @@ ${grizzly.group.id} grizzly-core ${grizzly.version} + + + org.glassfish.grizzly + grizzly-framework + + + org.glassfish.grizzly + grizzly-portunif + +