Skip to content

Commit 4dce1b6

Browse files
Merge pull request #67 from Nasdaq/release-0.9.x
Removing Strimzi dependency
2 parents 81332d2 + 7425110 commit 4dce1b6

File tree

6 files changed

+22
-36
lines changed

6 files changed

+22
-36
lines changed

ncds-sdk/pom.xml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.nasdaq.ncds</groupId>
99
<artifactId>ncds</artifactId>
10-
<version>0.8.5</version>
10+
<version>0.9.0</version>
1111
</parent>
1212

1313
<artifactId>ncds-sdk</artifactId>
@@ -56,12 +56,6 @@
5656
<artifactId>slf4j-simple</artifactId>
5757
<scope>test</scope>
5858
</dependency>
59-
<!-- Kafka -auth -->
60-
<dependency>
61-
<groupId>io.strimzi</groupId>
62-
<artifactId>kafka-oauth-common</artifactId>
63-
</dependency>
64-
6559
<!-- Testing -->
6660

6761
<!-- Kafka -->

ncds-sdk/src/main/java/com/nasdaq/ncdsclient/consumer/NasdaqKafkaAvroConsumer.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import com.nasdaq.ncdsclient.internal.utils.IsItJunit;
88
import com.nasdaq.ncdsclient.internal.utils.KafkaConfigLoader;
99
import com.nasdaq.ncdsclient.news.NewsUtil;
10-
import io.strimzi.kafka.oauth.common.ConfigProperties;
1110
import org.apache.avro.Schema;
1211
import org.apache.kafka.clients.consumer.ConsumerConfig;
1312
import org.apache.kafka.clients.consumer.KafkaConsumer;
@@ -216,14 +215,6 @@ public KafkaConsumer getNewsConsumer(String topic) throws Exception {
216215
}
217216
}
218217

219-
private String getDate(){
220-
// Get Today's EST date
221-
DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd");
222-
dateformat.setTimeZone(TimeZone.getTimeZone("America/New_York"));
223-
String date = dateformat.format(new Date());
224-
return date;
225-
}
226-
227218
private KafkaConsumer seekToMidNight(TopicPartition topicPartition){
228219
Map<TopicPartition,Long> timestmaps = new HashMap();
229220
timestmaps.put(topicPartition , getTodayMidNightTimeStamp());

ncds-sdk/src/main/java/com/nasdaq/ncdsclient/internal/ReadSchemaTopic.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.nasdaq.ncdsclient.internal.utils.IsItJunit;
44
import com.nasdaq.ncdsclient.internal.utils.KafkaConfigLoader;
5-
import io.strimzi.kafka.oauth.common.ConfigProperties;
65
import org.apache.avro.Schema;
76
import org.apache.avro.generic.GenericRecord;
87
import org.apache.kafka.clients.consumer.*;
@@ -121,9 +120,9 @@ private KafkaAvroConsumer getConsumer(String cleindId) throws Exception {
121120
//Properties kafkaProps = null;
122121
try {
123122

124-
if(!IsItJunit.isJUnitTest()) {
125-
ConfigProperties.resolveAndExportToSystemProperties(securityProps);
126-
}
123+
// if(!IsItJunit.isJUnitTest()) {
124+
// ConfigProperties.resolveAndExportToSystemProperties(securityProps);
125+
// }
127126

128127
Schema.Parser parser = new Schema.Parser();
129128
//controlMessageSchema = parser.parse(ClassLoader.getSystemResourceAsStream("ControlMessageSchema.avsc"));
@@ -137,7 +136,7 @@ private KafkaAvroConsumer getConsumer(String cleindId) throws Exception {
137136
kafkaProps.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, OffsetResetStrategy.EARLIEST.toString().toLowerCase());
138137
kafkaProps.put(ConsumerConfig.GROUP_ID_CONFIG, cleindId);
139138
kafkaProps.put(ConsumerConfig.MAX_PARTITION_FETCH_BYTES_CONFIG, "5048576");
140-
ConfigProperties.resolve(kafkaProps);
139+
// ConfigProperties.resolve(kafkaProps);
141140
}
142141
catch (Exception e) {
143142
throw e;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Configuration status="DEBUG">
3+
<Appenders>
4+
<File name="LogToFile" fileName="logs/unittest/log.out" append="false" immediateFlush="true">
5+
<PatternLayout>
6+
<Pattern>%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n</Pattern>
7+
</PatternLayout>
8+
</File>
9+
</Appenders>
10+
<Loggers>
11+
<Root level="INFO">
12+
<AppenderRef ref="LogToFile"/>
13+
</Root>
14+
</Loggers>
15+
</Configuration>

ncdssdk-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.nasdaq.ncds</groupId>
99
<artifactId>ncds</artifactId>
10-
<version>0.8.5</version>
10+
<version>0.9.0</version>
1111
</parent>
1212

1313
<artifactId>ncdssdk-client</artifactId>

pom.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.nasdaq.ncds</groupId>
77
<artifactId>ncds</artifactId>
8-
<version>0.8.5</version>
8+
<version>0.9.0</version>
99
<packaging>pom</packaging>
1010
<name>Nasdaq Cloud Data Service </name>
1111

@@ -23,7 +23,6 @@
2323
<log4j.version>2.20.0</log4j.version>
2424
<netty.version>4.1.94.Final</netty.version>
2525
<slf4jVersion>1.7.36</slf4jVersion>
26-
<strimzi.oauth.version>0.12.0</strimzi.oauth.version>
2726
<checkstyle.skip>true</checkstyle.skip>
2827
<junit5.version>5.7.2</junit5.version>
2928
<junit5PlatformProvider.version>1.3.2</junit5PlatformProvider.version>
@@ -116,18 +115,6 @@
116115
<version>${kafka.version}</version>
117116
</dependency>
118117

119-
<!--Kafka Auth Dependency-->
120-
<dependency>
121-
<groupId>io.strimzi</groupId>
122-
<artifactId>kafka-oauth-client</artifactId>
123-
<version>${strimzi.oauth.version}</version>
124-
</dependency>
125-
<dependency>
126-
<groupId>io.strimzi</groupId>
127-
<artifactId>kafka-oauth-common</artifactId>
128-
<version>${strimzi.oauth.version}</version>
129-
</dependency>
130-
131118
<dependency>
132119
<groupId>org.slf4j</groupId>
133120
<artifactId>slf4j-log4j12</artifactId>

0 commit comments

Comments
 (0)