From 140037d1f640991cda25076ebea54c4585d6a77e Mon Sep 17 00:00:00 2001 From: Norman Ma Date: Wed, 4 Dec 2024 14:27:16 +0000 Subject: [PATCH] Compatibility with deprecated method removal --- build.gradle | 2 +- .../autoconfigure/SpringKafkaConsumerPropertiesProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 939ba1e1..4a62a9b3 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ import com.github.spotbugs.snom.Effort buildscript { if (!project.hasProperty("springBootVersion")) { - ext.springBootVersion = System.getenv("SPRING_BOOT_VERSION") ?: "3.4.0" + ext.springBootVersion = System.getenv("SPRING_BOOT_VERSION") ?: "3.3.1" } dependencies { classpath "com.avast.gradle:gradle-docker-compose-plugin:0.17.10" diff --git a/tw-tasks-kafka-listener-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/kafkalistener/autoconfigure/SpringKafkaConsumerPropertiesProvider.java b/tw-tasks-kafka-listener-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/kafkalistener/autoconfigure/SpringKafkaConsumerPropertiesProvider.java index ad50cbe8..36eb4477 100644 --- a/tw-tasks-kafka-listener-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/kafkalistener/autoconfigure/SpringKafkaConsumerPropertiesProvider.java +++ b/tw-tasks-kafka-listener-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/kafkalistener/autoconfigure/SpringKafkaConsumerPropertiesProvider.java @@ -19,7 +19,7 @@ public class SpringKafkaConsumerPropertiesProvider implements IKafkaListenerCons @Override public Map getProperties(int shard) { - var props = kafkaProperties.buildConsumerProperties(); + var props = kafkaProperties.buildConsumerProperties(null); try { var kafkaClientsVersion = new Semver(AppInfoParser.getVersion());