Skip to content

Commit bbf2edf

Browse files
authored
bump dependency versions (#98)
* bump dependency versions * Update test for new version of kafka
1 parent d5127eb commit bbf2edf

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- Added ability to modify topic configuration via the UI.
1111
- Various UI usability improvements.
1212
- Updated SpringBoot framework from 1.5.x to 2.0.5.
13+
- Updates Kafka Client from 0.11.0.2 to 1.1.1.
1314

1415
### Breaking Changes
1516

dev-cluster/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<plugin>
9393
<groupId>org.apache.maven.plugins</groupId>
9494
<artifactId>maven-deploy-plugin</artifactId>
95-
<version>2.7</version>
95+
<version>2.8.2</version>
9696
<configuration>
9797
<skip>true</skip>
9898
</configuration>

dev-cluster/src/main/java/org/sourcelab/kafka/devcluster/DevCluster.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
package org.sourcelab.kafka.devcluster;
2626

2727
import com.salesforce.kafka.test.KafkaTestCluster;
28+
import com.salesforce.kafka.test.KafkaTestUtils;
2829
import org.slf4j.Logger;
2930
import org.slf4j.LoggerFactory;
3031

@@ -58,6 +59,16 @@ public static void main(final String[] args) throws Exception {
5859
// Start the cluster.
5960
kafkaTestCluster.start();
6061

62+
// Create a topic
63+
final String topicName = "TestTopicA";
64+
final KafkaTestUtils utils = new KafkaTestUtils(kafkaTestCluster);
65+
utils.createTopic(topicName, clusterSize, (short) clusterSize);
66+
67+
// Publish some data into that topic
68+
for (int partition = 0; partition < clusterSize; partition++) {
69+
utils.produceRecords(1000, topicName, partition);
70+
}
71+
6172
kafkaTestCluster
6273
.getKafkaBrokers()
6374
.stream()

kafka-webview-ui/pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<java.version>1.8</java.version>
3333
<bootstrap.version>4.0.0-beta</bootstrap.version>
3434
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
35-
<kafka.version>0.11.0.2</kafka.version>
35+
<kafka.version>1.1.1</kafka.version>
3636
</properties>
3737

3838
<dependencies>
@@ -182,7 +182,7 @@
182182
<plugin>
183183
<groupId>org.apache.maven.plugins</groupId>
184184
<artifactId>maven-compiler-plugin</artifactId>
185-
<version>3.6.1</version>
185+
<version>3.8.0</version>
186186
<configuration>
187187
<source>1.8</source>
188188
<target>1.8</target>
@@ -193,7 +193,7 @@
193193
<plugin>
194194
<groupId>org.apache.maven.plugins</groupId>
195195
<artifactId>maven-dependency-plugin</artifactId>
196-
<version>3.0.1</version>
196+
<version>3.1.1</version>
197197
<executions>
198198
<execution>
199199
<id>copy-dependencies</id>
@@ -206,7 +206,7 @@
206206
<!-- Clean dist directory for frontend -->
207207
<plugin>
208208
<artifactId>maven-clean-plugin</artifactId>
209-
<version>3.0.0</version>
209+
<version>3.1.0</version>
210210
<configuration>
211211
<filesets>
212212
<fileset>
@@ -278,7 +278,7 @@
278278
<!-- Copies frontend dist over to resources directory -->
279279
<plugin>
280280
<artifactId>maven-resources-plugin</artifactId>
281-
<version>2.7</version>
281+
<version>3.1.0</version>
282282
<executions>
283283
<execution>
284284
<id>copy gulp dist files to static</id>
@@ -303,7 +303,7 @@
303303
<plugin>
304304
<groupId>org.apache.maven.plugins</groupId>
305305
<artifactId>maven-assembly-plugin</artifactId>
306-
<version>2.5.1</version>
306+
<version>3.1.0</version>
307307
<configuration>
308308
<!-- Configures the used assembly descriptor -->
309309
<descriptors>

kafka-webview-ui/src/test/java/org/sourcelab/kafka/webview/ui/manager/kafka/KafkaOperationsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ public void testModifyingATopic() {
286286
final String topicName = "TestTopic-" + System.currentTimeMillis();
287287

288288
// Define the values we want to modify
289-
final String configName1 = "flush.messages";
290-
final String newConfigValue1 = "0";
289+
final String configName1 = "cleanup.policy";
290+
final String newConfigValue1 = "compact";
291291

292292
final String configName2 = "max.message.bytes";
293293
final String newConfigValue2 = "1024";

0 commit comments

Comments
 (0)