Update to spring-kafka 1.1.0.M1
This commit is contained in:
@@ -44,6 +44,7 @@ import org.springframework.kafka.core.KafkaTemplate;
|
||||
import org.springframework.kafka.core.ProducerFactory;
|
||||
import org.springframework.kafka.listener.KafkaMessageListenerContainer;
|
||||
import org.springframework.kafka.listener.config.ContainerProperties;
|
||||
import org.springframework.kafka.support.KafkaNull;
|
||||
import org.springframework.kafka.support.TopicPartitionInitialOffset;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.MessageChannel;
|
||||
@@ -84,6 +85,7 @@ public class Application {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
toKafka.send(new GenericMessage<>("foo" + i));
|
||||
}
|
||||
toKafka.send(new GenericMessage<>(KafkaNull.INSTANCE));
|
||||
PollableChannel fromKafka = context.getBean("received", PollableChannel.class);
|
||||
Message<?> received = fromKafka.receive(10000);
|
||||
while (received != null) {
|
||||
@@ -178,7 +180,7 @@ public class Application {
|
||||
ZkUtils zkUtils = new ZkUtils(new ZkClient(this.zkConnect, 6000, 6000,
|
||||
ZKStringSerializer$.MODULE$), null, false);
|
||||
try {
|
||||
AdminUtils.createTopic(zkUtils, topic, 1, 1, new Properties());
|
||||
AdminUtils.createTopic(zkUtils, topic, 1, 1, new Properties(), null);
|
||||
}
|
||||
catch (TopicExistsException e) {
|
||||
// no-op
|
||||
|
||||
@@ -197,12 +197,12 @@ subprojects { subproject ->
|
||||
postgresVersion = '9.1-901-1.jdbc4'
|
||||
subethasmtpVersion = '1.2'
|
||||
slf4jVersion = '1.7.11'
|
||||
springIntegrationVersion = '4.3.0.RELEASE'
|
||||
springIntegrationVersion = '4.3.1.RELEASE'
|
||||
springIntegrationDslVersion = '1.1.2.RELEASE'
|
||||
springIntegrationKafkaVersion = '2.0.0.RELEASE'
|
||||
springIntegrationKafkaVersion = '2.0.1.RELEASE'
|
||||
springIntegrationSplunkVersion = '1.1.0.RELEASE'
|
||||
springKafkaVersion = '1.0.1.RELEASE'
|
||||
springVersion = '4.3.0.RELEASE'
|
||||
springKafkaVersion = '1.1.0.M1'
|
||||
springVersion = '4.3.2.RELEASE'
|
||||
springSecurityVersion = '4.0.2.RELEASE'
|
||||
springWebFlowVersion = '2.3.3.RELEASE'
|
||||
tilesJspVersion = '2.2.1'
|
||||
@@ -609,6 +609,7 @@ project('kafka') {
|
||||
exclude group: 'org.slf4j'
|
||||
}
|
||||
compile "org.springframework.integration:spring-integration-core:$springIntegrationVersion"
|
||||
compile "org.springframework.kafka:spring-kafka:$springKafkaVersion"
|
||||
compile ("org.springframework.kafka:spring-kafka-test:$springKafkaVersion") {
|
||||
exclude group: 'org.slf4j'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user