Upgrade dependencies including Gradle

* Fix compatibility with upgraded dependencies
* Move `What's New` for `5.4` to `history`
* Add `XmlUnit` dependency since the latest AssertJ has deprecated its `isXmlEqualTo()`
* Remove `javax.annotation-api` and `apiguardian-api` as redundant dependencies
This commit is contained in:
Artem Bilan
2020-12-02 17:20:46 -05:00
parent cf8591d700
commit bdb3ba8ebd
16 changed files with 195 additions and 202 deletions

View File

@@ -229,26 +229,12 @@ public class KafkaMessageListenerContainerSpec<K, V>
return this;
}
/**
* Set whether the container should ack messages that throw exceptions or not.
* @param ackOnError whether the container should acknowledge messages that throw
* exceptions.
* @return the spec.
* @deprecated in favor of {@code GenericErrorHandler.isAckAfterHandle()}.
* @see ContainerProperties#setAckOnError(boolean)
*/
@Deprecated
public KafkaMessageListenerContainerSpec<K, V> ackOnError(boolean ackOnError) {
this.target.getContainerProperties().setAckOnError(ackOnError);
return this;
}
/**
* Set the group id for this container. Overrides any {@code group.id} property
* provided by the consumer factory configuration.
* @param groupId the group id.
* @return the spec.
* @see ContainerProperties#setAckOnError(boolean)
* @see ContainerProperties#setGroupId(String)
*/
public KafkaMessageListenerContainerSpec<K, V> groupId(String groupId) {
this.target.getContainerProperties().setGroupId(groupId);