Skip to content

Commit fe7cf7d

Browse files
committed
Fix ClassNotFoundException: javax.mail.internet.AddressException
1 parent 9d5b123 commit fe7cf7d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ mockito-junit-jupiter = { group = "org.mockito", name = "mockito-junit-jupiter",
3636
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit-jupiter" }
3737
junit-jupiter-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine", version.ref = "junit-jupiter" }
3838
junit-platform-launcher = { group = "org.junit.platform", name = "junit-platform-launcher", version.ref = "junit-platform" }
39+
javax-mail = { module = "com.sun.mail:javax.mail", version = "1.6.2" }
3940

4041
[plugins]
4142
spring-boot = { id = "org.springframework.boot", version.ref = "spring-boot" }

openapi-validation-core/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ dependencies {
44
api project(':openapi-validation-api')
55

66
implementation(libs.swagger.request.validator.core)
7+
implementation(libs.javax.mail) // needed as otherwise ClassNotFoundException: javax.mail.internet.AddressException
8+
79
constraints {
810
implementation(libs.commons.codec) {
911
because 'Apache commons-codec before 1.13 is vulnerable to information exposure. See https://devhub.checkmarx.com/cve-details/Cxeb68d52e-5509/'

0 commit comments

Comments
 (0)