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

Client incompatible with JPMS modules #697

Open
chrylis opened this issue Aug 19, 2021 · 5 comments
Open

Client incompatible with JPMS modules #697

chrylis opened this issue Aug 19, 2021 · 5 comments
Labels
type: twilio enhancement feature request on Twilio's roadmap

Comments

@chrylis
Copy link

chrylis commented Aug 19, 2021

This is a reopen request for #440 and #566, which have not been fixed. Specifically, since you provide classes in the com.sendgrid namespace from multiple jars, it is not possible to use your client from the modulepath.

JPMS went GA four years ago and was available in preview for some time before that, and Java 11 is about to be replaced as the LTS baseline by Java 17. Getting the SendGrid client working with JPMS will not be overly difficult, and it's a blocker for some of your users.

@JenniferMah JenniferMah added status: waiting for feedback waiting for feedback from the submitter type: twilio enhancement feature request on Twilio's roadmap labels Aug 24, 2021
@JenniferMah
Copy link
Contributor

Hi @chrylis
I've reopened issue #440. Sendgrid-java already supports Java 11. Other than issue #440 and providing classes in the com.sendgrid namespace from multiple jars, are there any other blockers preventing use of JPMS?

@chrisjenx
Copy link

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Modules java.http.client and sendgrid.java export package com.sendgrid to module org.postgresql.jdbc

@chrisjenx
Copy link

Create a dist actually compiled against JDK 11 🙄

@chrisjenx
Copy link

Hi @chrylis
I've reopened issue #440. Sendgrid-java already supports Java 11. Other than issue #440 and providing classes in the com.sendgrid namespace from multiple jars, are there any other blockers preventing use of JPMS?

Just to clarify, the current jar is incompatible with JDK11+ built applications. Many libs bumped a major version to do this, in your case, 4.x could continue as J8 then a 5.x could target JDK11+.

See https://github.com/brettwooldridge/HikariCP for example

@shwetha-manvinkurke shwetha-manvinkurke removed the status: waiting for feedback waiting for feedback from the submitter label Oct 27, 2021
@chrisjenx
Copy link

Bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: twilio enhancement feature request on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

4 participants