Skip to content

Relaxed Jakarta Servlet API version to 5.x in GraphQL Java Servlet #524

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

Conversation

ideas-into-software
Copy link

As per Federico Rispo's comment Federico Rispo's comment (#508 (comment)), GraphQL Java Servlet is dependent on Jakarta Servlet 6.x only because of Spring dependencies, which are only used for testing. Therefore, it was possible to relax Jakarta Servlet API version to 5.x, while keeping Jakarta Servlet API version at 6.x for 'testImplementation' dependencies.

Most of our projects use Apache Felix Jetty and requiring Jakarta Servlet 6.x made it impossible to use that container.

Thanks to this small change, GraphQL Java Servlet is now compatible with latest version of Apache Felix Jetty, as well as many other servlet containers which do not yet support Jakarta Servlet 6.x.

 - Relaxed Jakarta Servlet API version to 5.x for 'api' dependencies

 - Kept Jakarta Servlet API version at 6.x for 'testImplementation' dependencies - since Jakarta Servlet API 6.x is required only for tests
@ideas-into-software
Copy link
Author

Possibly a separate branch, jakarta-servlet-5-x could be maintained, instead of merging to master?

@juergen-albert
Copy link

Is there any interesst in merging this, as we would highly appreciate this change as well.

@federicorispo
Copy link
Member

federicorispo commented Jun 15, 2023

@ideas-into-software We created the jakarta5 branch. Can you resolve the conflicts and point the PR to the jakarta5 branch? and it contains this change and we will make a release soon 🚀

@oliemansm you can close this PR

@ideas-into-software
Copy link
Author

Closing this as @federicorispo added this to https://github.com/graphql-java-kickstart/graphql-java-servlet/tree/jakarta5 branch via 72fba8b commit

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.

3 participants