mdhtr / java-webapplication

Building a java web application step by step
0 stars 0 forks source link

Update javax.* to jakarta.* for Jetty 11 #18

Open mdhtr opened 3 years ago

mdhtr commented 3 years ago

From https://webtide.com/jetty-10-and-11-have-arrived/

Jetty 11 When Oracle donated the JavaEE project to the Eclipse foundation, they maintained the copyright to the javax. namespace. Subsequently, future versions of JavaEE, now called JakartaEE, would be required to use a new namespace for those packages. Instead of an incremental process, the Eclipse foundation opted for a big bang approach and packages formerly under the javax. namespace has been refactored under the new jakarta.* namespace.

Enter Jetty 11. Jetty 11 is identical to Jetty 10 except that the javax. packages now conform to the new jakarta. namespace. Jetty 10 and 11 will remain in lockstep with each other for releases, meaning all new features or bug fixes in one version will be available in the other.

It is important to note that Jetty 10.x will be the last major Jetty version to support the javax.* namespace. If this is alarming, be assured that Jetty 10 will be supported for a number of years to come. We have no plans on releasing it only to drop support for it in 12-18 months.