jsonschemafriend icon indicating copy to clipboard operation
jsonschemafriend copied to clipboard

Migrate AddressException from javax.mail to jakarta in FormatChecker.java

Open ghost opened this issue 3 years ago • 2 comments

As you may know the package javax.mail has not been updated for a while (Maven Central shows last release in 2018), more and more projects are migrating over to Jakarta. In FormatChecker an AddressException from javax.mail is being used, which is causing problems if software already has moved on to use Jakarta. The following exception is being thrown: Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/internet/AddressException It would be appreciated, if you could migrate onto newer library.

ghost avatar Jan 07 '22 13:01 ghost

As far as I can see, FormatChecker has undergone some work and no longer seems to be using said exception. In fact, is it possible the entire com.sun.mail:javax.mail artifact is no longer used, ie. can this line: https://github.com/jimblackler/jsonschemafriend/blob/4d753871d2e71782b170865cf8fcbf29a94e53b4/library/build.gradle#L50 simply be removed?

cardamon avatar Jul 12 '22 10:07 cardamon

Yep. Thanks all.

https://github.com/jimblackler/jsonschemafriend/commit/f7d59a0a69d156d79f1c0051013adb3550c0f3a2

jimblackler avatar Jul 19 '22 23:07 jimblackler