org.springframework.kafka:spring-kafka breaking changes
org.springframework.kafka:spring-kafka 4.0.0 (November 17, 2025) is its newest release with breaking changes, 43 of them. The first: Removed org.springframework.kafka.annotation.RetryableTopic.backoff. Every breaking API change we have recorded in org.springframework.kafka:spring-kafka on Maven Central: 213 breaking changes in 9 versions. Below, its 9 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.2.0. Source repository
Its 3.0.0-M1 release requires Java 17 or later. Java end of life dates.
org.springframework.kafka:spring-kafka 4.0.0 breaking changes
- Removed
org.springframework.kafka.annotation.RetryableTopic.backoff
RetryableTopic.backoff was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.core.reactive.ReactiveKafkaConsumerTemplate
org.springframework.kafka.core.reactive.ReactiveKafkaConsumerTemplate was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.core.reactive.ReactiveKafkaProducerTemplate
org.springframework.kafka.core.reactive.ReactiveKafkaProducerTemplate was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.event.ConsumerPartitionPausedEvent.getPartitions
ConsumerPartitionPausedEvent.getPartitions was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.AbstractConsumerSeekAware.getSeekCallbackFor
AbstractConsumerSeekAware.getSeekCallbackFor was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.AbstractConsumerSeekAware.getSeekCallbacks
AbstractConsumerSeekAware.getSeekCallbacks was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.adapter.AbstractRetryingMessageListenerAdapter
org.springframework.kafka.listener.adapter.AbstractRetryingMessageListenerAdapter was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.adapter.FilteringMessageListenerAdapter.setObservationRegistry
FilteringMessageListenerAdapter.setObservationRegistry was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.DeadLetterPublishingRecoverer.getClassifier
DeadLetterPublishingRecoverer.getClassifier was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.DeadLetterPublishingRecoverer.getHeaderNames
DeadLetterPublishingRecoverer.getHeaderNames was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.listener.ExceptionClassifier.getClassifier
ExceptionClassifier.getClassifier was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.retrytopic.BackOffValuesGenerator.getMaxAttempts
BackOffValuesGenerator.getMaxAttempts was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Removed
org.springframework.kafka.support.KafkaUtils.setLogOnlyMetadata
KafkaUtils.setLogOnlyMetadata was removed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Signature changed
org.springframework.kafka.core.DefaultKafkaConsumerFactory.ExtendedKafkaConsumer.close
Was void close(java.time.Duration); now void close(org.apache.kafka.clients.consumer.CloseOptions). central.sonatype.com - Signature changed
org.springframework.kafka.core.DefaultKafkaProducerFactory.CloseSafeProducer.sendOffsetsToTransaction
The signature of org.springframework.kafka.core.DefaultKafkaProducerFactory.CloseSafeProducer.sendOffsetsToTransaction changed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Signature changed
org.springframework.kafka.listener.AbstractMessageListenerContainer.getBatchInterceptor
Was protected org.springframework.kafka.listener.BatchInterceptor<K, V> getBatchInterceptor(); now org.springframework.kafka.listener.BatchInterceptor<K, V> getBatchInterceptor(). central.sonatype.com - Signature changed
org.springframework.kafka.listener.AbstractMessageListenerContainer.getRecordInterceptor
Was protected org.springframework.kafka.listener.RecordInterceptor<K, V> getRecordInterceptor(); now org.springframework.kafka.listener.RecordInterceptor<K, V> getRecordInterceptor(). central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.BatchMessagingMessageListenerAdapter.invoke
Was protected void invoke(Object, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, org.springframework.messaging.Message<?>); now protected void invoke(Object, Object, Object... central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.BatchMessagingMessageListenerAdapter.invokeHandler
Was protected final Object invokeHandler(Object, org.springframework.kafka.support.Acknowledgment, org.springframework.messaging.Message<?>, org.apache.kafka.clients.consumer.Consumer<?, ?>); now protected final Object... central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.BatchMessagingMessageListenerAdapter.toMessagingMessage
Was protected org.springframework.messaging.Message<?> toMessagingMessage(org.apache.kafka.clients.consumer.ConsumerRecord<K, V>, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>); now... central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invoke
Was protected void invoke(Object, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, org.springframework.messaging.Message<?>); now protected void invoke(Object, Object, Object... central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler
Was protected final Object invokeHandler(Object, org.springframework.kafka.support.Acknowledgment, org.springframework.messaging.Message<?>, org.apache.kafka.clients.consumer.Consumer<?, ?>); now protected final Object... central.sonatype.com - Signature changed
org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.toMessagingMessage
Was protected org.springframework.messaging.Message<?> toMessagingMessage(org.apache.kafka.clients.consumer.ConsumerRecord<K, V>, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>); now... central.sonatype.com - Signature changed
org.springframework.kafka.listener.ConcurrentMessageListenerContainer.getBatchInterceptor
Was protected org.springframework.kafka.listener.BatchInterceptor<K, V> getBatchInterceptor(); now org.springframework.kafka.listener.BatchInterceptor<K, V> getBatchInterceptor(). central.sonatype.com - Signature changed
org.springframework.kafka.listener.ConcurrentMessageListenerContainer.getRecordInterceptor
Was protected org.springframework.kafka.listener.RecordInterceptor<K, V> getRecordInterceptor(); now org.springframework.kafka.listener.RecordInterceptor<K, V> getRecordInterceptor(). central.sonatype.com - Signature changed
org.springframework.kafka.listener.DeadLetterPublishingRecoverer.<init>
Was DeadLetterPublishingRecoverer(java.util.Map<Class<?>, org.springframework.kafka.core.KafkaOperations<?, ?>>) DeadLetterPublishingRecoverer(java.util.Map<Class<?>, org.springframework.kafka.core.KafkaOperations<?, ?>>... central.sonatype.com - Signature changed
org.springframework.kafka.listener.ErrorHandlingUtils.retryBatch
Was static Exception retryBatch(Exception, org.apache.kafka.clients.consumer.ConsumerRecords<?, ?>, org.apache.kafka.clients.consumer.Consumer<?, ?>, org.springframework.kafka.listener.MessageListenerContainer, Runnable... central.sonatype.com - Signature changed
org.springframework.kafka.listener.ListenerUtils.unrecoverableBackOff
The signature of ListenerUtils.unrecoverableBackOff changed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.BackOffValuesGenerator.<init>
Was BackOffValuesGenerator(int, org.springframework.retry.backoff.BackOffPolicy); now BackOffValuesGenerator(int, org.springframework.util.backoff.BackOff). central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.DeadLetterPublishingRecovererFactory.DeadLetterPublisherCreator.create
Was org.springframework.kafka.listener.DeadLetterPublishingRecoverer create(java.util.function.Function<org.apache.kafka.clients.producer.ProducerRecord<?, ?>, org.springframework.kafka.core.KafkaOperations<?, ?>>... central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.DestinationTopicContainer.getDltFor
The signature of DestinationTopicContainer.getDltFor changed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.DestinationTopicPropertiesFactory.<init>
Was DestinationTopicPropertiesFactory(String, String, java.util.List<Long>, org.springframework.classify.BinaryExceptionClassifier, int, org.springframework.kafka.core.KafkaOperations<?, ?>... central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.DestinationTopicResolver.getDltFor
The signature of DestinationTopicResolver.getDltFor changed in org.springframework.kafka:spring-kafka 4.0.0 central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder.customBackoff
Was org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder customBackoff(org.springframework.retry.backoff.SleepingBackOffPolicy<?>); now org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder... central.sonatype.com - Signature changed
org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder.exponentialBackoff
Was org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder exponentialBackoff(long, double, long, boolean); now org.springframework.kafka.retrytopic.RetryTopicConfigurationBuilder exponentialBackoff(long, double, long, long). central.sonatype.com - Signature changed
org.springframework.kafka.streams.KafkaStreamsInteractiveQueryService.setRetryTemplate
Was void setRetryTemplate(org.springframework.retry.support.RetryTemplate); now void setRetryTemplate(org.springframework.core.retry.RetryTemplate). central.sonatype.com - Signature changed
org.springframework.kafka.streams.RecoveringDeserializationExceptionHandler.handle
Was org.apache.kafka.streams.errors.DeserializationExceptionHandler.DeserializationHandlerResponse handle(org.apache.kafka.streams.processor.ProcessorContext, org.apache.kafka.clients.consumer.ConsumerRecord<byte[], byte[]>, Exception)... central.sonatype.com - Signature changed
org.springframework.kafka.support.converter.BatchMessageConverter.commonHeaders
Was void commonHeaders(org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, java.util.Map<String, Object>, Object, Object, Object, Object, Object, Object); now void commonHeaders(Object... central.sonatype.com - Signature changed
org.springframework.kafka.support.converter.JsonMessageConverter.toMessage
Was org.springframework.messaging.Message<?> toMessage(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, java.lang.reflect.Type); now... central.sonatype.com - Signature changed
org.springframework.kafka.support.converter.MessageConverter.commonHeaders
Was void commonHeaders(org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, java.util.Map<String, Object>, Object, Object, Object, Object, Object, Object); now void commonHeaders(Object... central.sonatype.com - Signature changed
org.springframework.kafka.support.converter.RecordMessageConverter.toMessage
Was org.springframework.messaging.Message<?> toMessage(org.apache.kafka.clients.consumer.ConsumerRecord<?, ?>, org.springframework.kafka.support.Acknowledgment, org.apache.kafka.clients.consumer.Consumer<?, ?>, java.lang.reflect.Type); now... central.sonatype.com - Signature changed
org.springframework.kafka.support.serializer.RetryingDeserializer.<init>
Was RetryingDeserializer(org.apache.kafka.common.serialization.Deserializer<T>, org.springframework.retry.RetryOperations); now RetryingDeserializer(org.apache.kafka.common.serialization.Deserializer<T>... central.sonatype.com - Signature changed
org.springframework.kafka.support.serializer.RetryingDeserializer.setRecoveryCallback
Was void setRecoveryCallback(org.springframework.retry.RecoveryCallback<T>); now void setRecoveryCallback(java.util.function.Function<org.springframework.core.retry.RetryException, T>). central.sonatype.com
org.springframework.kafka:spring-kafka 4.0.0-RC1 breaking changes
- Signature changed
DeadLetterPublishingRecoverer
The DeadLetterPublishingRecoverer constructor signature changed to accept ? extends KafkaOperations, so custom callers may need to update their code. github.com
org.springframework.kafka:spring-kafka 4.0.0-M5 breaking changes
- Removed
The library no longer uses Spring Retry and uses core retry instead, so code relying on Spring Retry through this library must change. github.com
org.springframework.kafka:spring-kafka 3.0.0 breaking changes
- Removed
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setBatchMessageConverter
AbstractKafkaListenerContainerFactory.setBatchMessageConverter was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setRecordMessageConverter
AbstractKafkaListenerContainerFactory.setRecordMessageConverter was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setRecoveryCallback
AbstractKafkaListenerContainerFactory.setRecoveryCallback was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setRetryTemplate
AbstractKafkaListenerContainerFactory.setRetryTemplate was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerContainerFactory.setStatefulRetry
AbstractKafkaListenerContainerFactory.setStatefulRetry was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerEndpoint.getRecoveryCallback
AbstractKafkaListenerEndpoint.getRecoveryCallback was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerEndpoint.getRetryTemplate
AbstractKafkaListenerEndpoint.getRetryTemplate was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerEndpoint.isStatefulRetry
AbstractKafkaListenerEndpoint.isStatefulRetry was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerEndpoint.setRecoveryCallback
AbstractKafkaListenerEndpoint.setRecoveryCallback was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com - Removed
org.springframework.kafka.config.AbstractKafkaListenerEndpoint.setRetryTemplate
AbstractKafkaListenerEndpoint.setRetryTemplate was removed in org.springframework.kafka:spring-kafka 3.0.0 central.sonatype.com
And 150 more in this version. Sign up to see every change
org.springframework.kafka:spring-kafka 3.0.0-RC1 breaking changes
- Behavior changed
nack
Calling nack() when offsets would be committed out of order is no longer allowed; code relying on it must change. github.com
org.springframework.kafka:spring-kafka 3.0.0-M6 breaking changes
- Removed
The ListenableFuture callback extension is removed. github.com - Removed
RHU.registerSynthesizedAnnotation
RHU.registerSynthesizedAnnotation is removed from the API. github.com - Signature changed
APIs that returned ListenableFuture now use CompletableFuture, so code using ListenableFuture types must change. github.com
Older versions
3 older versions.
Show 3 older versions
org.springframework.kafka:spring-kafka 3.0.0-M3 breaking changes
- Removed
ConsumerProp.onlyLogRecordMetadata
The onlyLogRecordMetadata consumer property is removed. github.com - Removed
org.springframework.kafka.listener.ContainerProperties.EOSMode.V1
EOSMode.V1 is removed; code using it must switch to another EOS mode. central.sonatype.com
org.springframework.kafka:spring-kafka 3.0.0-M2 breaking changes
- Removed
Deprecated APIs carried over from the 2.x line are removed. Code still calling them must move to their replacements. github.com
org.springframework.kafka:spring-kafka 3.0.0-M1 breaking changes
- Removed
The release is built for JDK 17, so users must run on JDK 17 or later. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.