From 38dcb7e11356bf1e5a3624ee22a8ebd96cff63df Mon Sep 17 00:00:00 2001 From: bgehrels Date: Fri, 10 Aug 2018 14:56:57 +0200 Subject: [PATCH] Fix #92 - Submission to Nakadi does not work without @EnableScheduling --- nakadi-producer-spring-boot-starter/pom.xml | 2 +- .../zalando/nakadiproducer/NakadiProducerAutoConfiguration.java | 2 ++ nakadi-producer-starter-spring-boot-2-test/pom.xml | 2 +- nakadi-producer/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nakadi-producer-spring-boot-starter/pom.xml b/nakadi-producer-spring-boot-starter/pom.xml index 8b64c95c..dda64f64 100644 --- a/nakadi-producer-spring-boot-starter/pom.xml +++ b/nakadi-producer-spring-boot-starter/pom.xml @@ -10,7 +10,7 @@ org.zalando nakadi-producer-reactor - 20.0.0 + 20.0.1 nakadi-producer-spring-boot-starter diff --git a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java index 0ad70345..87af2c5f 100644 --- a/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java +++ b/nakadi-producer-spring-boot-starter/src/main/java/org/zalando/nakadiproducer/NakadiProducerAutoConfiguration.java @@ -18,6 +18,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; +import org.springframework.scheduling.annotation.EnableScheduling; import org.zalando.fahrschein.NakadiClient; import org.zalando.nakadiproducer.eventlog.EventLogWriter; import org.zalando.nakadiproducer.eventlog.impl.EventLogRepository; @@ -39,6 +40,7 @@ @Configuration @AutoConfigureAfter(name="org.zalando.tracer.spring.TracerAutoConfiguration") +@EnableScheduling public class NakadiProducerAutoConfiguration { @ConditionalOnMissingBean({NakadiPublishingClient.class, NakadiClient.class}) diff --git a/nakadi-producer-starter-spring-boot-2-test/pom.xml b/nakadi-producer-starter-spring-boot-2-test/pom.xml index c4cce8f4..6f3887b9 100644 --- a/nakadi-producer-starter-spring-boot-2-test/pom.xml +++ b/nakadi-producer-starter-spring-boot-2-test/pom.xml @@ -10,7 +10,7 @@ org.zalando nakadi-producer-reactor - 20.0.0 + 20.0.1 diff --git a/nakadi-producer/pom.xml b/nakadi-producer/pom.xml index de37b657..929f1faf 100644 --- a/nakadi-producer/pom.xml +++ b/nakadi-producer/pom.xml @@ -10,7 +10,7 @@ org.zalando nakadi-producer-reactor - 20.0.0 + 20.0.1 nakadi-producer diff --git a/pom.xml b/pom.xml index 1eabece1..91fdcd9d 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ nakadi-producer-reactor org.zalando - 20.0.0 + 20.0.1 pom Nakadi Event Producer Reactor