Skip to content

Conversation

@dheid
Copy link

@dheid dheid commented May 9, 2022

Hi @oliemansm !

The servlet API is typically provided by the servlet container. In Spring Boot applications that include the GraphQL servlet, the "api" dependency leads to duplicate classes, because the Tomcat embedded container already provides them.

I think it's safe to not include the dependency, because a Servlet is always used in a servlet container.

Best regards

Daniel

The servlet API is typically provided by the servlet container.
@oliemansm oliemansm added this to the 13.0.0 milestone May 25, 2022

// Servlet
api 'javax.servlet:javax.servlet-api:4.0.1'
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
Copy link
Member

Choose a reason for hiding this comment

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

You also need to add it to be available for the tests so they can run.

@dheid dheid closed this Jun 8, 2022
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