Skip to content

Commit dbf5583

Browse files
authored
Refactored some dependencies
1 parent 2c9064f commit dbf5583

File tree

246 files changed

+2949
-563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+2949
-563
lines changed

LICENSE

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,16 @@ The following files include code modified from Dropwizard Metrics project.
317317

318318
Copyright (c) 2010-2013 Coda Hale, Yammer.com, 2014-2021 Dropwizard Team
319319
Project page: https://github.com/dropwizard/metrics
320-
License: https://github.com/dropwizard/metrics/blob/release/4.2.x/LICENSE
320+
License: https://github.com/dropwizard/metrics/blob/release/4.2.x/LICENSE
321+
322+
--------------------------------------------------------------------------------
323+
324+
The following files include code modified from Apache Commons Collections project.
325+
326+
./iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/external/collections4/*
327+
328+
Apache Commons Collections is open source software licensed under the Apache License 2.0 and supported by the Apache Software Foundation.
329+
Project page: https://github.com/apache/commons-collections
330+
License: https://github.com/apache/commons-collections/blob/master/LICENSE.txt
331+
332+
--------------------------------------------------------------------------------

LICENSE-binary

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ following license. See licenses/ for text of these licenses.
216216
Apache Software Foundation License 2.0
217217
--------------------------------------
218218
commons-cli:commons-cli:1.5.0
219-
commons-codec:commons-codec:1.16.1
220-
org.apache.commons:commons-collections4:4.4
221-
commons-io:commons-io:2.14.0
222-
org.apache.commons:commons-lang3:3.18.0
223219
com.nimbusds:content-type:2.2
224220
com.google.code.gson:gson:2.13.1
225221
com.google.guava.guava:32.1.2-jre

dependencies.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"com.zaxxer:HikariCP",
4444
"commons-cli:commons-cli",
4545
"commons-codec:commons-codec",
46-
"commons-io:commons-io",
46+
"commons-codec:commons-codec",
4747
"commons-logging:commons-logging",
4848
"io.airlift:airline",
4949
"io.airlift:units",
@@ -67,11 +67,17 @@
6767
"io.netty:netty-resolver-dns-classes-macos",
6868
"io.netty:netty-resolver-dns-native-macos",
6969
"io.netty:netty-tcnative-boringssl-static",
70+
"io.netty:netty-tcnative-boringssl-static",
71+
"io.netty:netty-tcnative-boringssl-static",
72+
"io.netty:netty-tcnative-boringssl-static",
73+
"io.netty:netty-tcnative-boringssl-static",
7074
"io.netty:netty-tcnative-classes",
7175
"io.netty:netty-transport",
7276
"io.netty:netty-transport-classes-epoll",
7377
"io.netty:netty-transport-classes-kqueue",
7478
"io.netty:netty-transport-native-epoll",
79+
"io.netty:netty-transport-native-epoll",
80+
"io.netty:netty-transport-native-kqueue",
7581
"io.netty:netty-transport-native-kqueue",
7682
"io.netty:netty-transport-native-unix-common",
7783
"io.projectreactor:reactor-core",
@@ -92,10 +98,10 @@
9298
"net.minidev:accessors-smart",
9399
"net.minidev:json-smart",
94100
"org.antlr:antlr4-runtime",
95-
"org.apache.commons:commons-collections4",
96101
"org.apache.commons:commons-csv",
97102
"org.apache.commons:commons-jexl3",
98103
"org.apache.commons:commons-lang3",
104+
"org.apache.commons:commons-lang3",
99105
"org.apache.commons:commons-math3",
100106
"org.apache.commons:commons-pool2",
101107
"org.apache.httpcomponents:httpclient",
@@ -108,6 +114,7 @@
108114
"org.bouncycastle:bcprov-jdk18on",
109115
"org.bouncycastle:bcutil-jdk18on",
110116
"org.checkerframework:checker-qual",
117+
"org.checkerframework:checker-qual",
111118
"org.eclipse.collections:eclipse-collections",
112119
"org.eclipse.collections:eclipse-collections-api",
113120
"org.eclipse.jetty:jetty-http",
@@ -162,4 +169,4 @@
162169
"org.yaml:snakeyaml",
163170
"pl.edu.icm:JLargeArrays"
164171
]
165-
}
172+
}

example/mqtt-customize/src/main/java/org/apache/iotdb/mqtt/server/CustomizedJsonPayloadFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.apache.iotdb.db.protocol.mqtt.TreeMessage;
2525

2626
import io.netty.buffer.ByteBuf;
27-
import org.apache.commons.lang3.NotImplementedException;
27+
import org.apache.tsfile.external.commons.lang3.NotImplementedException;
2828

2929
import java.util.ArrayList;
3030
import java.util.Arrays;

integration-test/import-control.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<allow class="org.apache.iotdb.commons.path.PathDeserializeUtil"/>
6363
<allow class="org.apache.tsfile.utils.PublicBAOS"/>
6464
<allow class="org.apache.iotdb.commons.exception.IllegalPathException"/>
65-
<allow class="org.apache.commons.codec.digest.DigestUtils"/>
65+
<allow class="org.apache.tsfile.external.commons.codec.digest.DigestUtils"/>
6666
<allow class="org.apache.iotdb.commons.trigger.service.TriggerExecutableManager"/>
6767
<allow class="org.apache.iotdb.db.queryengine.plan.statement.AuthorType"/>
6868
<allow class="org.apache.iotdb.commons.trigger.TriggerInformation"/>

integration-test/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,10 @@
157157
<groupId>com.google.code.findbugs</groupId>
158158
<artifactId>jsr305</artifactId>
159159
</dependency>
160-
<dependency>
161-
<groupId>commons-io</groupId>
162-
<artifactId>commons-io</artifactId>
163-
</dependency>
164160
<dependency>
165161
<groupId>org.apache.thrift</groupId>
166162
<artifactId>libthrift</artifactId>
167163
</dependency>
168-
<dependency>
169-
<groupId>org.apache.commons</groupId>
170-
<artifactId>commons-lang3</artifactId>
171-
</dependency>
172164
<dependency>
173165
<groupId>jakarta.validation</groupId>
174166
<artifactId>jakarta.validation-api</artifactId>
@@ -188,10 +180,6 @@
188180
<artifactId>iotdb-cli</artifactId>
189181
<version>2.0.6-SNAPSHOT</version>
190182
</dependency>
191-
<dependency>
192-
<groupId>commons-codec</groupId>
193-
<artifactId>commons-codec</artifactId>
194-
</dependency>
195183
<dependency>
196184
<groupId>org.bouncycastle</groupId>
197185
<artifactId>bcprov-jdk18on</artifactId>

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/ClusterConstant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
package org.apache.iotdb.it.env.cluster;
2121

22-
import org.apache.commons.lang3.SystemUtils;
22+
import org.apache.tsfile.external.commons.lang3.SystemUtils;
2323

2424
import java.io.File;
2525

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/EnvUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import org.apache.iotdb.it.framework.IoTDBTestLogger;
2323

24-
import org.apache.commons.lang3.SystemUtils;
24+
import org.apache.tsfile.external.commons.lang3.SystemUtils;
2525
import org.apache.tsfile.utils.Pair;
2626

2727
import java.io.*;

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/node/AINodeWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.apache.iotdb.it.env.cluster.config.MppJVMConfig;
2323
import org.apache.iotdb.it.framework.IoTDBTestLogger;
2424

25-
import org.apache.commons.io.file.PathUtils;
25+
import org.apache.tsfile.external.commons.io.file.PathUtils;
2626
import org.slf4j.Logger;
2727

2828
import java.io.BufferedWriter;

integration-test/src/main/java/org/apache/iotdb/it/env/cluster/node/AbstractNodeWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import org.apache.iotdb.it.framework.IoTDBTestLogger;
2929
import org.apache.iotdb.itbase.env.BaseNodeWrapper;
3030

31-
import org.apache.commons.io.FileUtils;
32-
import org.apache.commons.io.file.PathUtils;
33-
import org.apache.commons.lang3.SystemUtils;
31+
import org.apache.tsfile.external.commons.io.FileUtils;
32+
import org.apache.tsfile.external.commons.io.file.PathUtils;
33+
import org.apache.tsfile.external.commons.lang3.SystemUtils;
3434
import org.slf4j.Logger;
3535

3636
import javax.annotation.Nullable;

0 commit comments

Comments
 (0)