Skip to content

Commit

Permalink
Upgrade dependencies version (#2273)
Browse files Browse the repository at this point in the history
* Upgrade dependencies version
  • Loading branch information
terrymanu authored Oct 13, 2023
1 parent 16dd2fc commit 3a7fb71
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ private void createTaskResultTableIfNeeded(final Connection conn) throws SQLExce
private void createTaskResultTable(final Connection conn, final StatisticInterval statisticInterval) throws SQLException {
String dbSchema = "CREATE TABLE `" + TABLE_TASK_RESULT_STATISTICS + "_" + statisticInterval + "` ("
+ "`id` BIGINT NOT NULL AUTO_INCREMENT, "
+ "`success_count` INT(11),"
+ "`failed_count` INT(11),"
+ "`success_count` INT,"
+ "`failed_count` INT,"
+ "`statistics_time` TIMESTAMP NOT NULL,"
+ "`creation_time` TIMESTAMP NOT NULL,"
+ "PRIMARY KEY (`id`));";
Expand All @@ -103,7 +103,7 @@ private void createTaskRunningTableIfNeeded(final Connection conn) throws SQLExc
private void createTaskRunningTable(final Connection conn) throws SQLException {
String dbSchema = "CREATE TABLE `" + TABLE_TASK_RUNNING_STATISTICS + "` ("
+ "`id` BIGINT NOT NULL AUTO_INCREMENT, "
+ "`running_count` INT(11),"
+ "`running_count` INT,"
+ "`statistics_time` TIMESTAMP NOT NULL,"
+ "`creation_time` TIMESTAMP NOT NULL,"
+ "PRIMARY KEY (`id`));";
Expand All @@ -124,7 +124,7 @@ private void createJobRunningTableIfNeeded(final Connection conn) throws SQLExce
private void createJobRunningTable(final Connection conn) throws SQLException {
String dbSchema = "CREATE TABLE `" + TABLE_JOB_RUNNING_STATISTICS + "` ("
+ "`id` BIGINT NOT NULL AUTO_INCREMENT, "
+ "`running_count` INT(11),"
+ "`running_count` INT,"
+ "`statistics_time` TIMESTAMP NOT NULL,"
+ "`creation_time` TIMESTAMP NOT NULL,"
+ "PRIMARY KEY (`id`));";
Expand All @@ -145,7 +145,7 @@ private void createJobRegisterTableIfNeeded(final Connection conn) throws SQLExc
private void createJobRegisterTable(final Connection conn) throws SQLException {
String dbSchema = "CREATE TABLE `" + TABLE_JOB_REGISTER_STATISTICS + "` ("
+ "`id` BIGINT NOT NULL AUTO_INCREMENT, "
+ "`registered_count` INT(11),"
+ "`registered_count` INT,"
+ "`statistics_time` TIMESTAMP NOT NULL,"
+ "`creation_time` TIMESTAMP NOT NULL,"
+ "PRIMARY KEY (`id`));";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ The text of each license is the standard Apache 2.0 license.
commons-dbcp2 2.11.1: https://github.com/apache/commons-dbcp, Apache 2.0
commons-exec 1.3: http://commons.apache.org/proper/commons-exec, Apache 2.0
commons-lang 2.6: https://github.com/apache/commons-lang, Apache 2.0
commons-lang3 3.4: https://github.com/apache/commons-lang, Apache 2.0
commons-lang3 3.12.0: https://github.com/apache/commons-lang, Apache 2.0
commons-logging 1.2: https://github.com/apache/commons-logging, Apache 2.0
commons-pool2 2.8.1: https://github.com/apache/commons-pool, Apache 2.0
curator-client 5.5.0: https://github.com/apache/curator, Apache 2.0
Expand All @@ -230,7 +230,7 @@ The text of each license is the standard Apache 2.0 license.
failureaccess 1.0.1:https://github.com/google/guava, Apache 2.0
fenzo-core 1.0.1: https://github.com/Netflix/Fenzo, Apache 2.0
gson 2.10.1: https://github.com/google/gson, Apache 2.0
guava 30.0-jre: https://github.com/google/guava, Apache 2.0
guava 32.1.2-jre: https://github.com/google/guava, Apache 2.0
HikariCP-java7 2.4.13: https://github.com/brettwooldridge/HikariCP, Apache 2.0
httpclient 4.5.14: https://github.com/apache/httpcomponents-client, Apache 2.0
httpcore 4.4.16: https://github.com/apache/httpcomponents-core, Apache 2.0
Expand All @@ -241,17 +241,17 @@ The text of each license is the standard Apache 2.0 license.
log4j 1.2.17: http://logging.apache.org/log4j/1.2/, Apache 2.0
log4j-over-slf4j 1.7.36: https://github.com/qos-ch/slf4j, Apache 2.0
mesos 1.11.0: http://mesos.apache.org/, Apache 2.0
netty-buffer 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-codec 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-codec-http 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-common 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-handler 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-resolver 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-transport 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-transport-native-epoll 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-transport-native-unix-common 4.1.97.Final: https://github.com/netty, Apache 2.0
netty-buffer 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-codec 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-codec-http 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-common 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-handler 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-resolver 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-transport 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-transport-native-epoll 4.1.99.Final: https://github.com/netty, Apache 2.0
netty-transport-native-unix-common 4.1.99.Final: https://github.com/netty, Apache 2.0
quartz 2.3.2: https://github.com/quartz-scheduler/quartz, Apache 2.0
snakeyaml 2.0: https://bitbucket.org/snakeyaml/snakeyaml/src, Apache 2.0
snakeyaml 2.2: https://bitbucket.org/snakeyaml/snakeyaml/src, Apache 2.0
zookeeper 3.9.0: https://github.com/apache/zookeeper, Apache 2.0
zookeeper-jute 3.9.0: https://github.com/apache/zookeeper, Apache 2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import org.yaml.snakeyaml.DumperOptions;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.inspector.TrustedPrefixesTagInspector;

import java.util.Collections;

/**
* YAML engine.
Expand Down Expand Up @@ -53,7 +50,7 @@ public static String marshal(final Object value) {
*/
public static <T> T unmarshal(final String yamlContent, final Class<T> classType) {
LoaderOptions loaderOptions = new LoaderOptions();
loaderOptions.setTagInspector(new TrustedPrefixesTagInspector(Collections.singletonList("org.apache.shardingsphere.elasticjob")));
loaderOptions.setTagInspector(tagInspector -> tagInspector.getClassName().startsWith("org.apache.shardingsphere.elasticjob"));
return new Yaml(loaderOptions).loadAs(yamlContent, classType);
}
}
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<slf4j.version>1.7.7</slf4j.version>
<logback.version>1.2.0</logback.version>
<commons-dbcp2.version>2.9.0</commons-dbcp2.version>
<h2.version>1.4.184</h2.version>
<h2.version>2.2.224</h2.version>
<mysql.version>8.0.28</mysql.version>
<maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
<flatten-maven-plugin.version>1.2.5</flatten-maven-plugin.version>
Expand Down
32 changes: 16 additions & 16 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.locale>zh_CN</project.build.locale>

<guava.version>30.0-jre</guava.version>
<commons-lang3.version>3.4</commons-lang3.version>
<guava.version>32.1.2-jre</guava.version>
<commons-lang3.version>3.12.0</commons-lang3.version>
<quartz.version>2.3.2</quartz.version>
<zookeeper.version>3.9.0</zookeeper.version>
<curator.version>5.5.0</curator.version>
Expand All @@ -59,48 +59,48 @@
<commons-exec.version>1.3</commons-exec.version>
<httpclient.version>4.5.14</httpclient.version>
<httpcore.version>4.4.16</httpcore.version>
<snakeyaml.version>2.0</snakeyaml.version>
<snakeyaml.version>2.2</snakeyaml.version>
<gson.version>2.10.1</gson.version>
<netty.version>4.1.97.Final</netty.version>
<netty.version>4.1.99.Final</netty.version>
<mesos.version>1.11.0</mesos.version>
<fenzo.version>1.0.1</fenzo.version>

<commons-dbcp2.version>2.10.0</commons-dbcp2.version>
<commons-pool2.version>2.11.1</commons-pool2.version>
<hikaricp.version>3.4.2</hikaricp.version>
<hikari-cp.version>4.0.3</hikari-cp.version>
<mail.version>1.6.0</mail.version>

<mysql-connector-java.version>8.0.16</mysql-connector-java.version>
<h2.version>1.4.184</h2.version>
<h2.version>2.2.224</h2.version>
<junit.version>5.10.0</junit.version>
<hamcrest.version>2.2</hamcrest.version>
<bytebuddy.version>1.14.8</bytebuddy.version>
<mockito.version>4.11.0</mockito.version>
<awaitility.version>4.2.0</awaitility.version>

<apache-rat-plugin.version>0.15</apache-rat-plugin.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<maven-surefire-report-plugin.version>2.18.1</maven-surefire-report-plugin.version>
<maven-site-plugin.version>3.4</maven-site-plugin.version>
<maven-site-plugin.version>4.0.0-M6</maven-site-plugin.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<maven-plugin-plugin.version>3.4</maven-plugin-plugin.version>
<maven-enforcer-plugin.version>3.1.0</maven-enforcer-plugin.version>
<maven-project-info-reports-plugin.version>2.8</maven-project-info-reports-plugin.version>
<maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version>
<maven-enforcer-plugin.version>3.2.1</maven-enforcer-plugin.version>
<maven-project-info-reports-plugin.version>3.4.2</maven-project-info-reports-plugin.version>
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-jxr-plugin.version>2.5</maven-jxr-plugin.version>
<maven-jxr-plugin.version>3.3.0</maven-jxr-plugin.version>
<coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
<cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
<findbugs-maven-plugin.version>3.0.2</findbugs-maven-plugin.version>
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
<maven-pmd-plugin.version>3.5</maven-pmd-plugin.version>
<maven-pmd-plugin.version>3.20.0</maven-pmd-plugin.version>
<jdepend-maven-plugin.version>2.0</jdepend-maven-plugin.version>
<taglist-maven-plugin.version>2.4</taglist-maven-plugin.version>
<maven-assembly-plugin.version>3.1.0</maven-assembly-plugin.version>
<maven-assembly-plugin.version>3.5.0</maven-assembly-plugin.version>
<checksum-maven-plugin.version>1.10</checksum-maven-plugin.version>
</properties>

Expand Down Expand Up @@ -253,7 +253,7 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>${hikaricp.version}</version>
<version>${hikari-cp.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
Expand Down

0 comments on commit 3a7fb71

Please sign in to comment.