mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 18:47:45 +00:00
chore(deps): Migrate EOL vulnerability of javax.mail to jakarta.mail (#12282)
This commit is contained in:
parent
d3ac112d28
commit
f6c86df1f5
@ -286,7 +286,8 @@ project.ext.externalDependency = [
|
|||||||
'annotationApi': 'javax.annotation:javax.annotation-api:1.3.2',
|
'annotationApi': 'javax.annotation:javax.annotation-api:1.3.2',
|
||||||
'jakartaAnnotationApi': 'jakarta.annotation:jakarta.annotation-api:3.0.0',
|
'jakartaAnnotationApi': 'jakarta.annotation:jakarta.annotation-api:3.0.0',
|
||||||
'classGraph': 'io.github.classgraph:classgraph:4.8.172',
|
'classGraph': 'io.github.classgraph:classgraph:4.8.172',
|
||||||
'mustache': 'com.github.spullara.mustache.java:compiler:0.9.14'
|
'mustache': 'com.github.spullara.mustache.java:compiler:0.9.14',
|
||||||
|
'javaxMail': 'com.sun.mail:jakarta.mail:1.6.7'
|
||||||
]
|
]
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
@ -374,6 +375,7 @@ configure(subprojects.findAll {! it.name.startsWith('spark-lineage')}) {
|
|||||||
exclude group: "org.slf4j", module: "slf4j-nop"
|
exclude group: "org.slf4j", module: "slf4j-nop"
|
||||||
exclude group: "org.slf4j", module: "slf4j-ext"
|
exclude group: "org.slf4j", module: "slf4j-ext"
|
||||||
exclude group: "org.codehaus.jackson", module: "jackson-mapper-asl"
|
exclude group: "org.codehaus.jackson", module: "jackson-mapper-asl"
|
||||||
|
exclude group: "javax.mail", module: "mail"
|
||||||
|
|
||||||
resolutionStrategy.force externalDependency.antlr4Runtime
|
resolutionStrategy.force externalDependency.antlr4Runtime
|
||||||
resolutionStrategy.force externalDependency.antlr4
|
resolutionStrategy.force externalDependency.antlr4
|
||||||
|
|||||||
@ -103,10 +103,10 @@ import java.util.stream.Collectors;
|
|||||||
import java.util.stream.StreamSupport;
|
import java.util.stream.StreamSupport;
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import javax.mail.MethodNotSupportedException;
|
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.lang3.NotImplementedException;
|
import org.apache.commons.lang3.NotImplementedException;
|
||||||
|
import org.apache.http.MethodNotSupportedException;
|
||||||
import org.opensearch.core.common.util.CollectionUtils;
|
import org.opensearch.core.common.util.CollectionUtils;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ -1195,7 +1195,7 @@ public class RestliEntityClient extends BaseClient implements EntityClient {
|
|||||||
@Nonnull String aspect,
|
@Nonnull String aspect,
|
||||||
@Nonnull Long version)
|
@Nonnull Long version)
|
||||||
throws RemoteInvocationException {
|
throws RemoteInvocationException {
|
||||||
throw new MethodNotSupportedException();
|
throw new MethodNotSupportedException("Method not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -26,6 +26,7 @@ dependencies {
|
|||||||
|
|
||||||
implementation externalDependency.slf4jApi
|
implementation externalDependency.slf4jApi
|
||||||
compileOnly externalDependency.lombok
|
compileOnly externalDependency.lombok
|
||||||
|
runtimeOnly externalDependency.javaxMail
|
||||||
|
|
||||||
annotationProcessor externalDependency.lombok
|
annotationProcessor externalDependency.lombok
|
||||||
|
|
||||||
@ -40,6 +41,9 @@ dependencies {
|
|||||||
implementation(externalDependency.log4jApi) {
|
implementation(externalDependency.log4jApi) {
|
||||||
because("previous versions are vulnerable to CVE-2021-45105")
|
because("previous versions are vulnerable to CVE-2021-45105")
|
||||||
}
|
}
|
||||||
|
implementation(externalDependency.javaxMail) {
|
||||||
|
because("previous versions are vulnerable")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
implementation externalDependency.logbackClassic
|
implementation externalDependency.logbackClassic
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user