From 3592dcc4ee7bc6891e68dbdf2a02b82d6b098f40 Mon Sep 17 00:00:00 2001 From: Hang Ruan Date: Fri, 28 Oct 2022 16:40:38 +0800 Subject: [PATCH] [db2] Add sql connector for Db2 CDC (#1626) This closes #450. --- flink-sql-connector-db2-cdc/pom.xml | 92 +++++++++++++++++++ .../cdc/connectors/db2/DummyDocs.java | 20 ++++ .../src/main/resources/META-INF/NOTICE | 6 ++ pom.xml | 1 + 4 files changed, 119 insertions(+) create mode 100644 flink-sql-connector-db2-cdc/pom.xml create mode 100644 flink-sql-connector-db2-cdc/src/main/java/com/ververica/cdc/connectors/db2/DummyDocs.java create mode 100644 flink-sql-connector-db2-cdc/src/main/resources/META-INF/NOTICE diff --git a/flink-sql-connector-db2-cdc/pom.xml b/flink-sql-connector-db2-cdc/pom.xml new file mode 100644 index 000000000..e4bb973ed --- /dev/null +++ b/flink-sql-connector-db2-cdc/pom.xml @@ -0,0 +1,92 @@ + + + + + flink-cdc-connectors + com.ververica + 2.3-SNAPSHOT + + 4.0.0 + + flink-sql-connector-db2-cdc + + + + com.ververica + flink-connector-db2-cdc + ${project.version} + + + + com.ibm.db2.jcc + db2jcc + db2jcc4 + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.1.1 + + + shade-flink + package + + shade + + + false + + + *:* + + + + + org.apache.kafka:* + + kafka/kafka-version.properties + LICENSE + + NOTICE + common/** + + + + + + org.apache.kafka + + com.ververica.cdc.connectors.shaded.org.apache.kafka + + + + + + + + + + \ No newline at end of file diff --git a/flink-sql-connector-db2-cdc/src/main/java/com/ververica/cdc/connectors/db2/DummyDocs.java b/flink-sql-connector-db2-cdc/src/main/java/com/ververica/cdc/connectors/db2/DummyDocs.java new file mode 100644 index 000000000..7ad75616e --- /dev/null +++ b/flink-sql-connector-db2-cdc/src/main/java/com/ververica/cdc/connectors/db2/DummyDocs.java @@ -0,0 +1,20 @@ +/* + * Copyright 2022 Ververica Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.ververica.cdc.connectors.db2; + +/** This is used to generate a dummy docs jar for this module to pass OSS repository rule. */ +public class DummyDocs {} diff --git a/flink-sql-connector-db2-cdc/src/main/resources/META-INF/NOTICE b/flink-sql-connector-db2-cdc/src/main/resources/META-INF/NOTICE new file mode 100644 index 000000000..b8b0ac45f --- /dev/null +++ b/flink-sql-connector-db2-cdc/src/main/resources/META-INF/NOTICE @@ -0,0 +1,6 @@ +flink-sql-connector-db2-cdc +Copyright 2020 Ververica Inc. + +This project bundles the following dependencies under the Apache Software License 2.0. (http://www.apache.org/licenses/LICENSE-2.0.txt) + +- org.apache.kafka:kafka-clients:2.5.0 diff --git a/pom.xml b/pom.xml index a7af197af..956b5a6ac 100644 --- a/pom.xml +++ b/pom.xml @@ -49,6 +49,7 @@ under the License. flink-sql-connector-oceanbase-cdc flink-sql-connector-sqlserver-cdc flink-sql-connector-tidb-cdc + flink-sql-connector-db2-cdc flink-cdc-e2e-tests