budjb / grails-jaxrs

JAX-RS Plugin for Grails
5 stars 9 forks source link

Support for Jersey 2.0 #2

Open budjb opened 8 years ago

budjb commented 8 years ago

From @srmelody on June 27, 2013 22:5

Jersey 2.0 is out: https://jersey.java.net/

It would be great for this plugin to support the 2.0 version of Jersey.

Copied from original issue: krasserm/grails-jaxrs#19

budjb commented 8 years ago

From @davidecavestro on September 9, 2013 10:34

I guess supporting jaxrs 2.0 api (and hence jersey 2.x) may easily imply breaking backward compatibility. Nevertheless I think it should be done in one way or another.

More specifically, at https://jersey.java.net/documentation/latest/modules-and-dependencies.html I've seen that a web application declaring jersey/jaxrs as dependencies should use the artifact jersey-container-servlet-core if the servlet container implements Servlet API older than 3.0, otherwise jersey-container-servlet. If the webapp is deployed within an application server providing jersey and jaxrs on its own, the dependency should be declared as provided. We should find a way to provide the needed deps remaining servlet-api version independent.

budjb commented 8 years ago

From @cdeszaq on December 3, 2013 16:52

+1 (though, Grails itself provides many of the same things that Jersey v2.0 provides over the v1.x line)