From a287fc3286c38a6f472a9262777efc16798f705a Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Thu, 15 Jun 2023 03:12:29 +0100 Subject: Patch #2 : Introduce kafka template for cloud events - Introduced a new cloud kafka template for cloud events that reads it's configuration from application.yml - Kept legacy kafka template for backward compatibility utill all cps events moved to cloud event comply. - Modified application.yml producer and consumer value deserializer properties to support cloud events. - Added new cloudevents-bom used into cps-ncmp-service pom. - For the time being we will have 2 kafkatemplates (legacyEventKafkaTemplate, cloudEventKafkaTemplate) into EventsPublisher until we fully move to cloudevents for all events. Once all cps events will be cloud event compy, we have TODO task where Deprecated: legacyKafkaEventTemplate will be removed with its java configuration file KafkaTemplateConfig. Issue-ID: CPS-1724 Signed-off-by: sourabh_sourabh Change-Id: I78c15bd480db063b89c6630c46c2d3a328b4fae4 Signed-off-by: sourabh_sourabh --- cps-ncmp-service/pom.xml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'cps-ncmp-service/pom.xml') diff --git a/cps-ncmp-service/pom.xml b/cps-ncmp-service/pom.xml index b87fe6436..bbcb6873c 100644 --- a/cps-ncmp-service/pom.xml +++ b/cps-ncmp-service/pom.xml @@ -41,6 +41,18 @@ org.apache.commons commons-lang3 + + io.cloudevents + cloudevents-json-jackson + + + io.cloudevents + cloudevents-kafka + + + io.cloudevents + cloudevents-spring + ${project.groupId} cps-service @@ -54,8 +66,8 @@ cps-path-parser - org.springframework - spring-web + com.hazelcast + hazelcast-spring org.mapstruct @@ -66,8 +78,8 @@ mapstruct-processor - com.hazelcast - hazelcast-spring + org.springframework + spring-web -- cgit 1.2.3-korg