From 997263e20ccbbf2d30e9c1ef1557d29981d3f506 Mon Sep 17 00:00:00 2001 From: naveengujjar29 Date: Thu, 26 Oct 2023 19:17:24 +0530 Subject: [PATCH 1/2] Using jakarta mail latest instead of com.sun as mailapi artificat has been moved Using jakarta mail latest instead of com.sun as mailapi artificat has been moved. --- project.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.gradle b/project.gradle index 3d2665129..38256b797 100644 --- a/project.gradle +++ b/project.gradle @@ -37,7 +37,7 @@ dependencies { compile(group: "com.github.java-json-tools", name: "jackson-coreutils-equivalence", version: "1.0"); compile(group: "com.github.java-json-tools", name: "json-schema-core", version: "1.2.14"); // FIXME: 1.6.4 exists, but has different license (EDL 1.0, EPL 2.0). Can update? - compile(group: "com.sun.mail", name: "mailapi", version: "1.6.2"); + compile(group: "jakarta.mail", name: "jakarta.mail-api", version: "2.1.2"); compile(group: "joda-time", name: "joda-time", version: "2.10.5"); compile(group: "com.googlecode.libphonenumber", name: "libphonenumber", version: "8.11.1"); compile(group: "com.google.code.findbugs", name: "jsr305", version: "3.0.2"); From 5262df2cbb89b728366a338bc6676fe790ffa9e6 Mon Sep 17 00:00:00 2001 From: naveengujjar29 Date: Thu, 26 Oct 2023 19:18:33 +0530 Subject: [PATCH 2/2] Uisng Jakarta mail imports instead of javax mail as mail api artifacts has been moved to jakarta. Uisng Jakarta mail imports instead of javax mail as mail api artifacts has been moved to jakarta. --- .../github/fge/jsonschema/format/common/EmailAttribute.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/fge/jsonschema/format/common/EmailAttribute.java b/src/main/java/com/github/fge/jsonschema/format/common/EmailAttribute.java index ca94611a9..07a5ec63a 100644 --- a/src/main/java/com/github/fge/jsonschema/format/common/EmailAttribute.java +++ b/src/main/java/com/github/fge/jsonschema/format/common/EmailAttribute.java @@ -27,8 +27,8 @@ import com.github.fge.jsonschema.processors.data.FullData; import com.github.fge.msgsimple.bundle.MessageBundle; -import javax.mail.internet.AddressException; -import javax.mail.internet.InternetAddress; +import jakarta.mail.internet.AddressException; +import jakarta.mail.internet.InternetAddress; /** * Validator for the {@code email} format attribute.