Skip to content

Commit

Permalink
[update] embedded cdc supplier version
Browse files Browse the repository at this point in the history
Signed-off-by: Srinivasa Vasu <srinivasan.surprise@gmail.com>
  • Loading branch information
srinivasa-vasu committed Oct 5, 2023
1 parent e198fa9 commit b67da90
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 25 deletions.
101 changes: 83 additions & 18 deletions flightschedule/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<properties>
<java.version>17</java.version>
<spring-cloud.version>2022.0.4</spring-cloud.version>
<slf4j.version>2.0.9</slf4j.version>
<debezium.version>1.9.6.Final</debezium.version>
</properties>

<dependencies>
Expand All @@ -27,16 +27,30 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud.fn</groupId>
<artifactId>cdc-debezium-supplier</artifactId>
<version>1.2.0</version>
<version>4.0.0-M1</version>
<exclusions>
<exclusion>
<groupId>io.debezium</groupId>
<artifactId>debezium-embedded</artifactId>
</exclusion>
<!-- <exclusion>-->
<!-- <groupId>io.debezium</groupId>-->
<!-- <artifactId>debezium-embedded</artifactId>-->
<!-- </exclusion>-->
<exclusion>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-mysql</artifactId>
Expand All @@ -58,9 +72,21 @@
<artifactId>debezium-connector-sqlserver</artifactId>
</exclusion>
<exclusion>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-spanner</artifactId>
</exclusion>
<exclusion>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-db2</artifactId>
</exclusion>
<exclusion>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-vitess</artifactId>
</exclusion>
<!-- <exclusion>-->
<!-- <groupId>mysql</groupId>-->
<!-- <artifactId>mysql-connector-java</artifactId>-->
<!-- </exclusion>-->
</exclusions>
</dependency>
<dependency>
Expand All @@ -70,16 +96,16 @@
<scope>system</scope>
<systemPath>${project.basedir}/lib/debezium-connector-yugabytedb-1.9.5.y.33.SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-api</artifactId>
<version>1.9.2.Final</version>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-embedded</artifactId>
<version>1.9.2.Final</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.debezium</groupId>-->
<!-- <artifactId>debezium-api</artifactId>-->
<!-- <version>${debezium.version}</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>io.debezium</groupId>-->
<!-- <artifactId>debezium-embedded</artifactId>-->
<!-- <version>${debezium.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
Expand Down Expand Up @@ -130,8 +156,47 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

</project>
12 changes: 5 additions & 7 deletions flightwatch/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ spring:
jackson:
property-naming-strategy: SNAKE_CASE

data:
cassandra:
contact-points: $HOST
local-datacenter: ybcloud
keyspace-name: alerts
schema-action: CREATE_IF_NOT_EXISTS

cloud:
stream:
function:
Expand All @@ -22,3 +15,8 @@ spring:
input:
destination: flight_watch
group: flight_watch_consumer
cassandra:
contact-points: $HOST
local-datacenter: ybcloud
keyspace-name: alerts
schema-action: CREATE_IF_NOT_EXISTS

0 comments on commit b67da90

Please sign in to comment.