build: Upgrade dependency version

This commit is contained in:
fit2-zhao 2023-09-26 16:24:16 +08:00 committed by 刘瑞斌
parent 77fc18b6f7
commit bb7a36cd3b
9 changed files with 16 additions and 55 deletions

View File

@ -261,18 +261,6 @@
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<version>${guava.version}</version> <version>${guava.version}</version>
</dependency> </dependency>
<!--解决升级JDK11后动态加载JAR 需要JVM的JCA签名信任才能作为加密提供者-->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>${bcprov-jdk15on.version}</version>
</dependency>
<!-- jdk11 环境下有 Illegal reflective access -->
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice.version}</version>
</dependency>
<!-- 排除jmeter中的 xstream 解决bug --> <!-- 排除jmeter中的 xstream 解决bug -->
<dependency> <dependency>
<groupId>com.thoughtworks.xstream</groupId> <groupId>com.thoughtworks.xstream</groupId>
@ -285,12 +273,6 @@
<version>${xmlbeans.version}</version> <version>${xmlbeans.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsoup.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.commonmark</groupId> <groupId>org.commonmark</groupId>
<artifactId>commonmark</artifactId> <artifactId>commonmark</artifactId>
@ -347,23 +329,6 @@
<artifactId>generex</artifactId> <artifactId>generex</artifactId>
<version>${generex.version}</version> <version>${generex.version}</version>
</dependency> </dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>${json-lib.version}</version>
<classifier>jdk15</classifier>
<exclusions>
<exclusion>
<artifactId>commons-collections</artifactId>
<groupId>commons-collections</groupId>
</exclusion>
<exclusion>
<artifactId>commons-beanutils</artifactId>
<groupId>commons-beanutils</groupId>
</exclusion>
</exclusions>
</dependency>
<!--java json schema json格式校验--> <!--java json schema json格式校验-->
<dependency> <dependency>
<groupId>com.github.java-json-tools</groupId> <groupId>com.github.java-json-tools</groupId>

View File

@ -7,7 +7,7 @@ import io.metersphere.sdk.util.CommonBeanFactory;
import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse; import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.web.filter.authc.AnonymousFilter; import org.apache.shiro.web.filter.authc.AnonymousFilter;
import org.apache.shiro.web.util.WebUtils; import org.apache.shiro.web.util.WebUtils;

View File

@ -1,8 +1,8 @@
package io.metersphere.system.uid; package io.metersphere.system.uid;
import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**

View File

@ -7,7 +7,7 @@ import io.metersphere.system.uid.utils.TimeUtils;
import io.metersphere.system.uid.worker.WorkerIdAssigner; import io.metersphere.system.uid.worker.WorkerIdAssigner;
import io.metersphere.sdk.util.LogUtils; import io.metersphere.sdk.util.LogUtils;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package io.metersphere.system.uid.utils; package io.metersphere.system.uid.utils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -1,8 +1,8 @@
package io.metersphere.system.uid.utils; package io.metersphere.system.uid.utils;
import org.apache.commons.lang.ClassUtils; import org.apache.commons.lang3.ClassUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

View File

@ -1,6 +1,6 @@
package io.metersphere.system.uid.utils; package io.metersphere.system.uid.utils;
import org.apache.commons.lang.time.DateFormatUtils; import org.apache.commons.lang3.time.DateFormatUtils;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@ -9,7 +9,7 @@ import java.util.Date;
/** /**
* DateUtils provides date formatting, parsing * DateUtils provides date formatting, parsing
*/ */
public abstract class TimeUtils extends org.apache.commons.lang.time.DateUtils { public abstract class TimeUtils extends org.apache.commons.lang3.time.DateUtils {
/** /**
* Patterns * Patterns
*/ */

View File

@ -7,7 +7,7 @@ import io.metersphere.system.mapper.BaseWorkerNodeMapper;
import io.metersphere.system.uid.utils.DockerUtils; import io.metersphere.system.uid.utils.DockerUtils;
import io.metersphere.system.uid.utils.NetUtils; import io.metersphere.system.uid.utils.NetUtils;
import jakarta.annotation.Resource; import jakarta.annotation.Resource;
import org.apache.commons.lang.math.RandomUtils; import org.apache.commons.lang3.RandomUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
@ -55,7 +55,7 @@ public class DisposableWorkerIdAssigner implements WorkerIdAssigner {
} else { } else {
workerNode.setType(WorkerNodeType.ACTUAL.value()); workerNode.setType(WorkerNodeType.ACTUAL.value());
workerNode.setHostName(NetUtils.getLocalAddress()); workerNode.setHostName(NetUtils.getLocalAddress());
workerNode.setPort(System.currentTimeMillis() + "-" + RandomUtils.nextInt(100000)); workerNode.setPort(System.currentTimeMillis() + "-" + RandomUtils.nextInt());
} }
workerNode.setCreated(System.currentTimeMillis()); workerNode.setCreated(System.currentTimeMillis());
workerNode.setModified(System.currentTimeMillis()); workerNode.setModified(System.currentTimeMillis());

14
pom.xml
View File

@ -20,12 +20,11 @@
<properties> <properties>
<revision>3.x</revision> <revision>3.x</revision>
<java.version>21</java.version> <java.version>21</java.version>
<dubbo.version>2.7.22</dubbo.version>
<platform-plugin-sdk.version>1.5.0</platform-plugin-sdk.version> <platform-plugin-sdk.version>1.5.0</platform-plugin-sdk.version>
<shiro.version>1.12.0</shiro.version> <shiro.version>1.12.0</shiro.version>
<java-websocket.version>1.5.3</java-websocket.version> <java-websocket.version>1.5.4</java-websocket.version>
<easyexcel.version>3.3.2</easyexcel.version> <easyexcel.version>3.3.2</easyexcel.version>
<dom4j.version>2.1.3</dom4j.version> <dom4j.version>2.1.4</dom4j.version>
<guava.version>32.0.1-jre</guava.version> <guava.version>32.0.1-jre</guava.version>
<pagehelper.version>5.3.3</pagehelper.version> <pagehelper.version>5.3.3</pagehelper.version>
<metersphere-jmeter-functions.version>1.5</metersphere-jmeter-functions.version> <metersphere-jmeter-functions.version>1.5</metersphere-jmeter-functions.version>
@ -35,14 +34,13 @@
<mybatis-starter.version>3.0.2</mybatis-starter.version> <mybatis-starter.version>3.0.2</mybatis-starter.version>
<reflections.version>0.10.2</reflections.version> <reflections.version>0.10.2</reflections.version>
<bcprov-jdk15on.version>1.70</bcprov-jdk15on.version> <bcprov-jdk15on.version>1.70</bcprov-jdk15on.version>
<commons-io.version>2.11.0</commons-io.version> <commons-io.version>2.13.0</commons-io.version>
<commons-text.version>1.10.0</commons-text.version> <commons-text.version>1.10.0</commons-text.version>
<xstream.version>1.4.20</xstream.version> <xstream.version>1.4.20</xstream.version>
<xmlbeans.version>3.1.0</xmlbeans.version> <xmlbeans.version>5.1.1</xmlbeans.version>
<swagger-parser.version>2.1.12</swagger-parser.version> <swagger-parser.version>2.1.16</swagger-parser.version>
<swagger.version>2.2.8</swagger.version> <swagger.version>2.2.8</swagger.version>
<springdoc-openapi-ui.version>2.1.0</springdoc-openapi-ui.version> <springdoc-openapi-ui.version>2.1.0</springdoc-openapi-ui.version>
<jsoup.version>1.15.3</jsoup.version>
<commonmark.version>0.19.0</commonmark.version> <commonmark.version>0.19.0</commonmark.version>
<commons-compress.version>1.21</commons-compress.version> <commons-compress.version>1.21</commons-compress.version>
<htmlcleaner.version>2.26</htmlcleaner.version> <htmlcleaner.version>2.26</htmlcleaner.version>
@ -51,7 +49,6 @@
<plexus.version>3.0.24</plexus.version> <plexus.version>3.0.24</plexus.version>
<common-random.version>1.0.14</common-random.version> <common-random.version>1.0.14</common-random.version>
<generex.version>1.0.2</generex.version> <generex.version>1.0.2</generex.version>
<json-lib.version>2.4</json-lib.version>
<json-schema-validator.version>2.2.14</json-schema-validator.version> <json-schema-validator.version>2.2.14</json-schema-validator.version>
<xz.version>1.9</xz.version> <xz.version>1.9</xz.version>
<flatten.version>1.2.7</flatten.version> <flatten.version>1.2.7</flatten.version>
@ -70,7 +67,6 @@
<dec.version>0.1.2</dec.version> <dec.version>0.1.2</dec.version>
<dingtalk-sdk.version>2.0.0</dingtalk-sdk.version> <dingtalk-sdk.version>2.0.0</dingtalk-sdk.version>
<dingtalk-client.version>2.0.29</dingtalk-client.version> <dingtalk-client.version>2.0.29</dingtalk-client.version>
<org-json.version>20220924</org-json.version>
<minio.version>8.5.2</minio.version> <minio.version>8.5.2</minio.version>
<hikaricp.version>5.0.1</hikaricp.version> <hikaricp.version>5.0.1</hikaricp.version>
<xmlgraphics-commons.version>2.7</xmlgraphics-commons.version> <xmlgraphics-commons.version>2.7</xmlgraphics-commons.version>