From ce058bd2550ec78e7f2364fa75defb6c6ba6b58b Mon Sep 17 00:00:00 2001 From: aiceflower Date: Tue, 7 Nov 2023 20:14:59 +0800 Subject: [PATCH] upgrade snakeyaml to 2.0 (#331) * upgrade snakeyaml * format code * exclude jackson-core-asl * remove snakeyaml --- .../linkis/manager/am/restful/EMRestfulApi.java | 2 +- linkis-dist/pom.xml | 4 ++++ linkis-engineconn-plugins/flink/pom.xml | 10 ++++++++++ linkis-engineconn-plugins/sqoop/pom.xml | 4 ++++ .../linkis-eureka/pom.xml | 4 ++++ .../linkis-spring-cloud-gateway/pom.xml | 4 ++++ pom.xml | 15 ++++++++++----- 7 files changed, 37 insertions(+), 6 deletions(-) diff --git a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/am/restful/EMRestfulApi.java b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/am/restful/EMRestfulApi.java index 95921776da..dc212d37b2 100644 --- a/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/am/restful/EMRestfulApi.java +++ b/linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/am/restful/EMRestfulApi.java @@ -542,7 +542,7 @@ public Message taskprediction( @RequestParam(value = "clustername", required = false) String clusterName, @RequestParam(value = "queueName", required = false) String queueName, @RequestParam(value = "tenant", required = false) String tenant) - throws PersistenceErrorException, RMErrorException { + throws PersistenceErrorException, RMErrorException { String tokenName = ModuleUserUtils.getOperationUser(req, "taskprediction"); if (StringUtils.isBlank(username)) { username = tokenName; diff --git a/linkis-dist/pom.xml b/linkis-dist/pom.xml index b847950a79..766a0e4c63 100644 --- a/linkis-dist/pom.xml +++ b/linkis-dist/pom.xml @@ -52,6 +52,10 @@ com.google.code.findbugs jsr305 + + jackson-core-asl + org.codehaus.jackson + diff --git a/linkis-engineconn-plugins/flink/pom.xml b/linkis-engineconn-plugins/flink/pom.xml index 55355d9f39..30649adcc0 100644 --- a/linkis-engineconn-plugins/flink/pom.xml +++ b/linkis-engineconn-plugins/flink/pom.xml @@ -319,6 +319,10 @@ com.google.protobuf protobuf-java + + jackson-core-asl + org.codehaus.jackson + @@ -456,6 +460,12 @@ 2.0.0 + + org.yaml + snakeyaml + 2.0 + + diff --git a/linkis-engineconn-plugins/sqoop/pom.xml b/linkis-engineconn-plugins/sqoop/pom.xml index 00dd52bdd3..a4fc660895 100644 --- a/linkis-engineconn-plugins/sqoop/pom.xml +++ b/linkis-engineconn-plugins/sqoop/pom.xml @@ -91,6 +91,10 @@ org.apache.avro avro + + jackson-core-asl + org.codehaus.jackson + diff --git a/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml b/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml index 72a57fa25c..7822fbaab9 100644 --- a/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml +++ b/linkis-spring-cloud-services/linkis-service-discovery/linkis-eureka/pom.xml @@ -79,6 +79,10 @@ org.springframework.boot spring-boot-starter-logging + + snakeyaml + org.yaml + diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-spring-cloud-gateway/pom.xml b/linkis-spring-cloud-services/linkis-service-gateway/linkis-spring-cloud-gateway/pom.xml index 6dec0ef829..b4110ad0f8 100644 --- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-spring-cloud-gateway/pom.xml +++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-spring-cloud-gateway/pom.xml @@ -48,6 +48,10 @@ org.springframework.cloud spring-cloud-starter-gateway + + jackson-core-asl + org.codehaus.jackson + diff --git a/pom.xml b/pom.xml index b594ba3a9f..46bbc4a944 100644 --- a/pom.xml +++ b/pom.xml @@ -925,6 +925,12 @@ ${spring.boot.version} pom import + + + org.yaml + snakeyaml + + org.springframework.cloud @@ -997,6 +1003,10 @@ org.springframework.boot spring-boot-starter-logging + + org.yaml + snakeyaml + @@ -1015,11 +1025,6 @@ spring-test test - - org.yaml - snakeyaml - ${snakeyaml.version} -