From 30a16faba1db629483cdcc03e20d6bbf0cfff21b Mon Sep 17 00:00:00 2001 From: sbliu Date: Sat, 26 Nov 2022 10:19:52 +0800 Subject: [PATCH] chore(TUP-36969) upgrade slf4j (#8213) * chore(TUP-36969) upgrade slf4j * correct * slf4j-log4j12-1.7.34.jar replaced with slf4j-reload4j-1.7.34.jar --- .../core/generic/model/Component.java | 2 +- main/plugins/org.talend.repository/plugin.xml | 28 ++++++-------- .../ui/utils/UpdateLog4jJarUtils.java | 12 +++--- .../core/utils/CheckLogManagerTest.java | 2 +- .../ui/utils/UpdateLog4jJarUtilsTest.java | 38 +++++++++---------- 5 files changed, 39 insertions(+), 43 deletions(-) diff --git a/main/plugins/org.talend.designer.core.generic/src/main/java/org/talend/designer/core/generic/model/Component.java b/main/plugins/org.talend.designer.core.generic/src/main/java/org/talend/designer/core/generic/model/Component.java index e260d83eb79..7ccd2f7a2f8 100644 --- a/main/plugins/org.talend.designer.core.generic/src/main/java/org/talend/designer/core/generic/model/Component.java +++ b/main/plugins/org.talend.designer.core.generic/src/main/java/org/talend/designer/core/generic/model/Component.java @@ -1269,7 +1269,7 @@ public List getModulesNeeded(INode node) { ModuleNeeded moduleNeeded = null; if(!CheckLogManamger.isSelectLog4j2()) { //TODO consider to let it works for all jobs, not only for tcompv0 components, mean move the code to ReplaceNodeInProcess and UpdateLog4jJarUtils when not log4j2 - moduleNeeded = new ModuleNeeded(getName(), "", true, "mvn:org.slf4j/slf4j-log4j12/1.7.29"); + moduleNeeded = new ModuleNeeded(getName(), "", true, "mvn:org.slf4j/slf4j-reload4j/1.7.34"); componentImportNeedsList.add(moduleNeeded); } moduleNeeded = new ModuleNeeded(getName(), "", true, "mvn:org.talend.libraries/talend-codegen-utils/0.31.0"); diff --git a/main/plugins/org.talend.repository/plugin.xml b/main/plugins/org.talend.repository/plugin.xml index 122b9685e6d..d30176bcd7c 100644 --- a/main/plugins/org.talend.repository/plugin.xml +++ b/main/plugins/org.talend.repository/plugin.xml @@ -3832,10 +3832,9 @@ + id="slf4j-reload4j-1.7.34.jar" + name="slf4j-reload4j-1.7.34.jar" + mvn_uri="mvn:org.slf4j/slf4j-reload4j/1.7.34"> + id="jul-to-slf4j-1.7.34.jar" + name="jul-to-slf4j-1.7.34.jar" + mvn_uri="mvn:org.slf4j/jul-to-slf4j/1.7.34"> + id="jcl-over-slf4j-1.7.34.jar" + name="jcl-over-slf4j-1.7.34.jar" + mvn_uri="mvn:org.slf4j/jcl-over-slf4j/1.7.34"> + id="slf4j-api-1.7.34.jar" + name="slf4j-api-1.7.34.jar" + mvn_uri="mvn:org.slf4j/slf4j-api/1.7.34">