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 javax.el and jakarta.el-api, using glassfish jakarta.el instead #2750

Merged
merged 1 commit into from May 1, 2019

Conversation

josephlbarnett
Copy link
Contributor

@josephlbarnett josephlbarnett commented Apr 29, 2019

Fixes duplicate classes between the 3 jars
Fixes #2739

Problem:

jakarta jars are replacing javax jars, so should depend on that instead of javax. Furthermore, the glassfish jakarta.el implementation jar includes all the classes from the jakarta.el-api jar (see jakartaee/expression-language#32), so should only depend on the implementation jar.

Solution:

depend on org.glassfish:jakarta-el, and exclude the other 2 jars

@joschi joschi added this to the 2.0.0 milestone Apr 29, 2019
Copy link
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@joschi joschi merged commit 68e0967 into dropwizard:master May 1, 2019
@jplock
Copy link
Member

jplock commented May 1, 2019

For reference, more information is at https://eclipse-foundation.blog/2018/02/26/and-the-name-is/

@aharin
Copy link
Contributor

aharin commented Jul 27, 2023

Does jakarta.el-api still need to be excluded?

This is not correct in DW 4.0.1 the glassfish jakarta.el implementation jar includes all the classes from the jakarta.el-api

And it does not get included as a transitive dependency in some scenarios with DW 4.0.1

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.

Maven Shade Plugin complains about duplicate javax.el classes in 2.0.0-rc0
4 participants