Skip to content

Commit ad9b600

Browse files
committed
added a timestamp.timezone configuration in SplunkSinkConnectorConfig
1 parent 8673160 commit ad9b600

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

dependency-reduced-pom.xml

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<plugins>
1010
<plugin>
1111
<artifactId>maven-shade-plugin</artifactId>
12-
<version>3.4.1</version>
12+
<version>3.1.0</version>
1313
<executions>
1414
<execution>
1515
<phase>package</phase>
@@ -29,7 +29,7 @@
2929
</plugin>
3030
<plugin>
3131
<artifactId>maven-compiler-plugin</artifactId>
32-
<version>3.11.0</version>
32+
<version>3.7.0</version>
3333
<configuration>
3434
<source>${java.version}</source>
3535
<target>${java.version}</target>
@@ -40,7 +40,7 @@
4040
</plugin>
4141
<plugin>
4242
<artifactId>maven-checkstyle-plugin</artifactId>
43-
<version>3.2.1</version>
43+
<version>2.17</version>
4444
<executions>
4545
<execution>
4646
<id>validate</id>
@@ -57,7 +57,7 @@
5757
<plugin>
5858
<groupId>org.jacoco</groupId>
5959
<artifactId>jacoco-maven-plugin</artifactId>
60-
<version>0.8.9</version>
60+
<version>0.8.6</version>
6161
<executions>
6262
<execution>
6363
<id>pre-unit-test</id>
@@ -89,7 +89,7 @@
8989
</plugin>
9090
<plugin>
9191
<artifactId>maven-surefire-plugin</artifactId>
92-
<version>3.0.0</version>
92+
<version>2.22.2</version>
9393
<configuration>
9494
<argLine>${surefireArgLine}</argLine>
9595
<skipTests>${skip.unit.tests}</skipTests>
@@ -107,17 +107,11 @@
107107
</plugin>
108108
</plugins>
109109
</build>
110-
<repositories>
111-
<repository>
112-
<id>confluent</id>
113-
<url>https://packages.confluent.io/maven/</url>
114-
</repository>
115-
</repositories>
116110
<dependencies>
117111
<dependency>
118112
<groupId>org.junit.jupiter</groupId>
119113
<artifactId>junit-jupiter-api</artifactId>
120-
<version>5.9.2</version>
114+
<version>5.3.2</version>
121115
<scope>test</scope>
122116
<exclusions>
123117
<exclusion>
@@ -145,7 +139,7 @@
145139
<dependency>
146140
<groupId>org.junit.platform</groupId>
147141
<artifactId>junit-platform-launcher</artifactId>
148-
<version>1.9.2</version>
142+
<version>1.3.2</version>
149143
<scope>test</scope>
150144
<exclusions>
151145
<exclusion>
@@ -157,7 +151,7 @@
157151
<dependency>
158152
<groupId>org.junit.jupiter</groupId>
159153
<artifactId>junit-jupiter-engine</artifactId>
160-
<version>5.9.2</version>
154+
<version>5.3.2</version>
161155
<scope>test</scope>
162156
<exclusions>
163157
<exclusion>
@@ -169,7 +163,7 @@
169163
<dependency>
170164
<groupId>org.junit.vintage</groupId>
171165
<artifactId>junit-vintage-engine</artifactId>
172-
<version>5.9.2</version>
166+
<version>5.3.2</version>
173167
<scope>test</scope>
174168
<exclusions>
175169
<exclusion>
@@ -181,35 +175,32 @@
181175
<dependency>
182176
<groupId>org.slf4j</groupId>
183177
<artifactId>slf4j-simple</artifactId>
184-
<version>2.0.7</version>
178+
<version>1.7.26</version>
185179
<scope>test</scope>
186180
</dependency>
187181
<dependency>
188182
<groupId>org.apiguardian</groupId>
189183
<artifactId>apiguardian-api</artifactId>
190-
<version>1.1.2</version>
184+
<version>1.0.0</version>
191185
<scope>test</scope>
192186
</dependency>
193187
</dependencies>
194188
<reporting>
195189
<plugins>
196190
<plugin>
197191
<artifactId>maven-jxr-plugin</artifactId>
198-
<version>3.3.0</version>
192+
<version>2.3</version>
199193
</plugin>
200194
</plugins>
201195
</reporting>
202196
<properties>
203-
<jackson.version>2.14.2</jackson.version>
204-
<junit.platform.version>1.9.2</junit.platform.version>
205-
<slf4j.version>2.0.7</slf4j.version>
206-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
207-
<junit.version>4.13.2</junit.version>
208-
<junit.vintage.version>5.9.2</junit.vintage.version>
197+
<maven.compiler.target>1.8</maven.compiler.target>
209198
<java.version>1.8</java.version>
210199
<maven.compiler.source>1.8</maven.compiler.source>
211-
<junit.jupiter.version>5.9.2</junit.jupiter.version>
212-
<kafka.version>3.4.0</kafka.version>
213-
<maven.compiler.target>1.8</maven.compiler.target>
200+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
201+
<junit.version>4.13.2</junit.version>
202+
<junit.jupiter.version>5.3.2</junit.jupiter.version>
203+
<junit.vintage.version>5.3.2</junit.vintage.version>
204+
<junit.platform.version>1.3.2</junit.platform.version>
214205
</properties>
215206
</project>

src/test/java/com/splunk/kafka/connect/SplunkSinkTaskTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ public void checkExtractedTimestamp() {
257257
config.put(SplunkSinkConnectorConfig.ENABLE_TIMESTAMP_EXTRACTION_CONF, String.valueOf(true));
258258
config.put(SplunkSinkConnectorConfig.REGEX_CONF, "\\\"time\\\":\\s*\\\"(?<time>.*?)\"");
259259
config.put(SplunkSinkConnectorConfig.TIMESTAMP_FORMAT_CONF, "MMM dd yyyy HH:mm:ss.SSS zzz");
260-
// config.put(SplunkSinkConnectorConfig.TIMESTAMP_TIMEZONE_CONF, "Asis/Seoul");
261260
HecMock hec = new HecMock(task);
262261
hec.setSendReturnResult(HecMock.success);
263262
task.setHec(hec);

0 commit comments

Comments
 (0)