-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Properly produce JDBC non-shaded jar #23446
Conversation
f2e14ce
to
b8faf93
Compare
d035f3d
to
fcfcaa5
Compare
This introduces a new module that publishes unshaded JDBC JAR along with a POM containing transitive dependencies and the fat JAR along with a POM that doesn't contain transitive dependencies. For backward compatibility, the fat JAR is named `trino-jdbc` while unshaded is `trino-jdbc-core`.
I'd like to get this into next release @martint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a change to use "core" and suggestion of a release note entry I'm good with this
fcfcaa5
to
3bdf2cd
Compare
@mosabua renamed, RN added |
What is the purpose of doing this? JDBC drivers should not have dependencies. |
@electrum using JDBC driver in an application where you want to control dependencies and their versions (i.e. you could exclude aircompressor and use newer one that is targeting JDK 22 instead of 8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it
In that case, then we should add another shaded JDBC driver artifact for modern JDKs. We don't produce libraries with the expectation that users will swap out dependencies and mess around with the internals. We can chat offline about this if that's helpful. |
Release notes does not seem to much PR desc |
Why is this closed? The currrent impl in master is busted and this is a good improvement and fix |
<relocation> | ||
<pattern>io.opentelemetry.api.incubator</pattern> | ||
<shadedPattern>${shadeBase}.opentelemetry.api.incubator</shadedPattern> | ||
<pattern>io.opentelemetry</pattern> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this fix #21689 or any other similar issue (there's like 3)?
This introduces a new module that publishes non-shaded JAR along with a POM containing transitive dependencies and the shaded JAR along with a POM that doesn't contain transitive dependencies. For backward compatibility, the shaded JAR is named
trino-jdbc
while non-shaded istrino-jdbc-non-shaded
.Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text: