Skip to content

Commit 57416ca

Browse files
authored
Update AK versions to 3.4.0 (#1540)
* Update AK versions to 3.4.0 * Updates to remove deprecated configs * Add override for explicitly setting client dependency to match kafka streams and not from a transitive dependency * formatting * formatting - include all file this time
1 parent bab2041 commit 57416ca

File tree

39 files changed

+187
-66
lines changed

39 files changed

+187
-66
lines changed

_includes/tutorials/aggregating-average/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ apply plugin: "com.github.johnrengelman.shadow"
3131
dependencies {
3232
implementation "org.apache.avro:avro:1.11.1"
3333
implementation "org.slf4j:slf4j-simple:2.0.7"
34-
implementation "org.apache.kafka:kafka-streams:3.3.1"
34+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
35+
implementation ('org.apache.kafka:kafka-clients') {
36+
version {
37+
strictly '3.4.0'
38+
}
39+
}
3540
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
3641
implementation "com.typesafe:config:1.4.2"
3742

38-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
43+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3944
testImplementation "junit:junit:4.13.2"
4045
testImplementation 'org.hamcrest:hamcrest:2.2'
4146

_includes/tutorials/aggregating-average/kstreams/code/src/main/java/io/confluent/developer/RunningAverage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected Properties buildStreamsProperties(Properties envProps) {
6161
config.put(REPLICATION_FACTOR_CONFIG, envProps.getProperty("default.topic.replication.factor"));
6262
config.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, envProps.getProperty("offset.reset.policy"));
6363

64-
config.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, 0);
64+
config.put(StreamsConfig.STATESTORE_CACHE_MAX_BYTES_CONFIG, 0);
6565

6666
return config;
6767
}

_includes/tutorials/aggregating-count/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ apply plugin: "com.github.johnrengelman.shadow"
3131
dependencies {
3232
implementation "org.apache.avro:avro:1.11.1"
3333
implementation "org.slf4j:slf4j-simple:2.0.7"
34-
implementation "org.apache.kafka:kafka-streams:3.3.1"
34+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
35+
implementation ('org.apache.kafka:kafka-clients') {
36+
version {
37+
strictly '3.4.0'
38+
}
39+
}
3540
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
36-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
41+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3742
testImplementation "junit:junit:4.13.2"
3843
}
3944

_includes/tutorials/aggregating-count/kstreams/code/src/main/java/io/confluent/developer/AggregatingCount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void runRecipe(final String configPath) throws IOException {
100100
}
101101
allProps.put(StreamsConfig.APPLICATION_ID_CONFIG, allProps.getProperty("application.id"));
102102
allProps.put(StreamsConfig.STATE_DIR_CONFIG, TestUtils.tempDirectory().getPath());
103-
allProps.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, 0);
103+
allProps.put(StreamsConfig.STATESTORE_CACHE_MAX_BYTES_CONFIG, 0);
104104

105105
Topology topology = this.buildTopology(allProps, this.ticketSaleSerde(allProps));
106106
this.createTopics(allProps);

_includes/tutorials/aggregating-minmax/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ mainClassName = "io.confluent.developer.AggregatingMinMax"
3333
dependencies {
3434
implementation "org.apache.avro:avro:1.11.1"
3535
implementation "org.slf4j:slf4j-simple:2.0.7"
36-
implementation "org.apache.kafka:kafka-streams:3.3.1"
36+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
37+
implementation ('org.apache.kafka:kafka-clients') {
38+
version {
39+
strictly '3.4.0'
40+
}
41+
}
3742
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
38-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
43+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3944
testImplementation "junit:junit:4.13.2"
4045
testImplementation 'org.hamcrest:hamcrest:2.2'
4146
}

_includes/tutorials/aggregating-minmax/kstreams/code/src/main/java/io/confluent/developer/AggregatingMinMax.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static Properties buildStreamsProperties(Properties envProps) {
4242
props.put(StreamsConfig.APPLICATION_ID_CONFIG, envProps.getProperty("application.id"));
4343
props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, envProps.getProperty("bootstrap.servers"));
4444
props.put(SCHEMA_REGISTRY_URL_CONFIG, envProps.getProperty("schema.registry.url"));
45-
props.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, 0);
45+
props.put(StreamsConfig.STATESTORE_CACHE_MAX_BYTES_CONFIG, 0);
4646

4747
return props;
4848
}

_includes/tutorials/aggregating-sum/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ apply plugin: "com.github.johnrengelman.shadow"
3030
dependencies {
3131
implementation "org.apache.avro:avro:1.11.1"
3232
implementation "org.slf4j:slf4j-simple:2.0.7"
33-
implementation "org.apache.kafka:kafka-streams:3.3.1"
33+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
34+
implementation ('org.apache.kafka:kafka-clients') {
35+
version {
36+
strictly '3.4.0'
37+
}
38+
}
3439
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
35-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
40+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3641
testImplementation "junit:junit:4.13.2"
3742
}
3843

_includes/tutorials/aggregating-sum/kstreams/code/src/main/java/io/confluent/developer/AggregatingSum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void runRecipe(final String configPath) throws IOException {
100100
}
101101
allProps.put(StreamsConfig.APPLICATION_ID_CONFIG, allProps.getProperty("application.id"));
102102
allProps.put(StreamsConfig.STATE_DIR_CONFIG, TestUtils.tempDirectory().getPath());
103-
allProps.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, 0);
103+
allProps.put(StreamsConfig.STATESTORE_CACHE_MAX_BYTES_CONFIG, 0);
104104

105105
Topology topology = this.buildTopology(allProps, this.ticketSaleSerde(allProps));
106106
this.createTopics(allProps);

_includes/tutorials/cogrouping-streams/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ apply plugin: "com.github.johnrengelman.shadow"
3232
dependencies {
3333
implementation "org.apache.avro:avro:1.11.1"
3434
implementation "org.slf4j:slf4j-simple:2.0.7"
35-
implementation "org.apache.kafka:kafka-streams:3.3.1"
35+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
36+
implementation ('org.apache.kafka:kafka-clients') {
37+
version {
38+
strictly '3.4.0'
39+
}
40+
}
3641
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
3742

38-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
43+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3944
testImplementation "junit:junit:4.13.2"
4045
testImplementation 'org.hamcrest:hamcrest:2.2'
4146
}

_includes/tutorials/connect-add-key-to-source/kstreams/code/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ apply plugin: "com.github.johnrengelman.shadow"
3131
dependencies {
3232
implementation "org.apache.avro:avro:1.11.1"
3333
implementation "org.slf4j:slf4j-simple:2.0.7"
34-
implementation "org.apache.kafka:kafka-streams:3.3.1"
34+
implementation 'org.apache.kafka:kafka-streams:3.4.0'
35+
implementation ('org.apache.kafka:kafka-clients') {
36+
version {
37+
strictly '3.4.0'
38+
}
39+
}
3540
implementation "io.confluent:kafka-streams-avro-serde:7.3.0"
3641
implementation 'com.google.code.gson:gson:2.10.1'
3742

38-
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.3.1"
43+
testImplementation "org.apache.kafka:kafka-streams-test-utils:3.4.0"
3944
testImplementation 'junit:junit:4.13.2'
4045
}
4146

0 commit comments

Comments
 (0)