OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
867 stars 557 forks source link

Jakarta compatible version of ews-java-api #773

Open paolobazzi opened 6 months ago

paolobazzi commented 6 months ago

The ews-java-api library depends on Java EE javax-packages in two classes:

This makes it impossible to use this library on a Java EE Jakarta-based application using version >=9, see https://jakarta.ee/specifications/platform/9/.

We migrated the ews-java-api as local patch for our application. If there is any interest to provide a Jakarta compatible version of ews-java-api I could provide a pull request with this changes.

davidmoten commented 6 months ago

You do realise the last commit here was 5 years ago?

paolobazzi commented 6 months ago

Yes of course, that was the reason for this question instead of directly creating a pull request. As we have a working patch for our application we're fine. I would only create a pull request if there is any interest by other users.

ivanchong123 commented 3 months ago

The ews-java-api library depends on Java EE javax-packages in two classes:

  • microsoft.exchange.webservices.data.core.request.ServiceRequestBase
  • microsoft.exchange.webservices.data.property.complex.TimeChange

This makes it impossible to use this library on a Java EE Jakarta-based application using version >=9, see https://jakarta.ee/specifications/platform/9/.

We migrated the ews-java-api as local patch for our application. If there is any interest to provide a Jakarta compatible version of ews-java-api I could provide a pull request with this changes.

Hi, i am interest on the Jakarta compatible version of ews-java-api. Can you please provide the pull request of the changes?

nateko commented 3 months ago

Yes of course, that was the reason for this question instead of directly creating a pull request. As we have a working patch for our application we're fine. I would only create a pull request if there is any interest by other users.

Please create a pull request when you can. Many people are interested.

paolobazzi commented 3 months ago

I added a simple patch - basically just two imports need to be adjusted and the according dependencies needs to be udpated to a jakarta-compatible version.