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

Remove compile dep to servlet and jetty #344

Merged
merged 1 commit into from
May 14, 2016

Conversation

drtechniko
Copy link
Contributor

That caused dependency issues.

compile 'javax.servlet:servlet-api:2.5'
compile 'org.mortbay.jetty:jetty:6.1.26'
provided 'javax.servlet:javax.servlet-api:3.0.1'
provided 'org.mortbay.jetty:jetty:6.1.26'
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems odd to make jetty provided when it is being used as an embedded server. What if the application is running outside of a servlet container or using a container other than jetty such as tomcat? Is the user expected to supply and keep track of the appropriate version of jetty?

Copy link
Contributor

Choose a reason for hiding this comment

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

What was the specific issue that prompted this PR? Also, this is a very old version of jetty. Perhaps we should consider changing this to the latest version of jetty in the org.eclipse.jetty org.

Copy link
Contributor

Choose a reason for hiding this comment

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

Note there were problems the last time it was updated to jetty 9 (see #220). So it would need some testing.

@drtechniko
Copy link
Contributor Author

I'm just doing an upgrade of 3.0.1 for this one. We can investigate upgrading jetty later.

@noel-yap
Copy link

Just FYI, since the artifact coordinate changed and the package names haven't changed, both versions of the library can get brought in and wind up loading the wrong classes. I think creating a Gradle Resolution Rule (https://github.com/nebula-plugins/gradle-resolution-rules) can help mitigate issues assuming clients use the plugin.

@noel-yap
Copy link

👍

@drtechniko drtechniko merged commit d58c007 into Netflix:master May 14, 2016
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.

4 participants