Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude grizzly artifacts bundled into grizzly-core already #184

Closed
wants to merge 1 commit into from

Conversation

pzygielo
Copy link
Contributor

@pzygielo pzygielo commented Dec 7, 2024

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
...

IMO the ideal would be to have it corrected in grizzly itself.

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
...
```
@dmatej
Copy link
Contributor

dmatej commented Dec 19, 2024

Hmmm, we should give some love to Grizzly too ... this smells badly. Especially because usual convention is that "framework" artifacts usually contain their repackaged dependencies which then are NOT in their compile dependencies.

@pzygielo
Copy link
Contributor Author

Hmmm, we should give some love to Grizzly too ...

This could help:

@pzygielo pzygielo closed this Dec 19, 2024
@pzygielo pzygielo deleted the gexl branch December 19, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants