commit cb7e0f47fff14ef0b74d29ddd5e60b9e8259e50e Author: Jark Wu Date: Tue Jul 7 19:57:09 2020 +0800 [build] Initialize project diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..edf55cfeb --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +.cache +scalastyle-output.xml +.classpath +.idea +.metadata +.settings +.project +.version.properties +filter.properties +logs.zip +target +tmp +*.class +*.iml +*.swp +*.jar +*.zip +*.log +*.pyc +.DS_Store +build-targetatlassian-ide-plugin.xml +*.ipr +*.iws \ No newline at end of file diff --git a/flink-mysql-cdc-connector/pom.xml b/flink-mysql-cdc-connector/pom.xml new file mode 100644 index 000000000..62fde4f5a --- /dev/null +++ b/flink-mysql-cdc-connector/pom.xml @@ -0,0 +1,20 @@ + + + + flink-cdc-connectors + com.alibaba.ververica + 0.1-SNAPSHOT + + 4.0.0 + + flink-mysql-cdc-connector + flink-mysql-cdc-connector + jar + + + + + + \ No newline at end of file diff --git a/flink-mysql-cdc-connector/src/test/resources/log4j2-test.properties b/flink-mysql-cdc-connector/src/test/resources/log4j2-test.properties new file mode 100644 index 000000000..835c2ec9a --- /dev/null +++ b/flink-mysql-cdc-connector/src/test/resources/log4j2-test.properties @@ -0,0 +1,28 @@ +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +################################################################################ + +# Set root logger level to OFF to not flood build logs +# set manually to INFO for debugging purposes +rootLogger.level = OFF +rootLogger.appenderRef.test.ref = TestLogger + +appender.testlogger.name = TestLogger +appender.testlogger.type = CONSOLE +appender.testlogger.target = SYSTEM_ERR +appender.testlogger.layout.type = PatternLayout +appender.testlogger.layout.pattern = %-4r [%t] %-5p %c %x - %m%n diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..bafe6df02 --- /dev/null +++ b/pom.xml @@ -0,0 +1,262 @@ + + + 4.0.0 + + com.alibaba.ververica + flink-cdc-connectors + 0.1-SNAPSHOT + pom + + + flink-mysql-cdc-connector + + + + + The Apache Software License, Version 2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + UTF-8 + 1.11-SNAPSHOT + 1.8 + 2.11 + ${java.version} + ${java.version} + 2.12.1 + 1C + true + log4j2-test.properties + + + + + + + org.apache.flink + flink-table-common + ${flink.version} + provided + + + org.apache.flink + flink-table-api-java-bridge_${scala.binary.version} + ${flink.version} + provided + + + org.apache.flink + flink-core + ${flink.version} + provided + + + org.apache.flink + flink-streaming-java_${scala.binary.version} + ${flink.version} + provided + + + + + + + org.apache.rat + apache-rat-plugin + 0.12 + false + + + verify + + check + + + + + false + 0 + + + + AL2 + Apache License 2.0 + + + Licensed to the Apache Software Foundation (ASF) under one + + + + + + Apache License 2.0 + + + + + **/.*/** + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17 + + + com.puppycrawl.tools + checkstyle + 8.14 + + + + + validate + validate + + check + + + + + /tools/maven/suppressions.xml + true + /tools/maven/checkstyle.xml + true + true + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + + default-test + test + + test + + + + **/*Test.java + **/*Test.scala + + + + + integration-tests + integration-test + + test + + + + **/*ITCase.java + **/*ITCase.scala + + false + + + + + ${flink.forkCount} + ${flink.reuseForks} + + 0${surefire.forkNumber} + ${log4j.configuration} + + -Xms256m -Xmx2048m -Dmvn.forkNumber=${surefire.forkNumber} + -XX:+UseG1GC + + + + + org.apache.maven.plugins + maven-enforcer-plugin + + + dependency-convergence + + enforce + + + true + + + + + + org.apache.maven.plugins + maven-shade-plugin + + + shade-flink + + false + true + jar-with-dependencies + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + org.slf4j:slf4j-log4j12 + log4j:log4j + + org.slf4j:slf4j-api + com.google.code.findbugs:jsr305 + + org.apache.flink:flink-shaded-* + com.alibaba.blink:flink-shaded-* + com.google.guava:guava + com.fasterxml.jackson.*:* + tv.cntt:* + io.netty:* + org.ow2.asm:* + + commons-logging:commons-logging + commons-codec:commons-codec + commons-collections:commons-collections + org.apache.commons:commons-lang3 + + org.apache.flink:* + com.alibaba.blink:force-shading + + + + + + + + + \ No newline at end of file diff --git a/tools/maven/checkstyle.xml b/tools/maven/checkstyle.xml new file mode 100644 index 000000000..9054413c0 --- /dev/null +++ b/tools/maven/checkstyle.xml @@ -0,0 +1,572 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/maven/suppressions.xml b/tools/maven/suppressions.xml new file mode 100644 index 000000000..dc7c40703 --- /dev/null +++ b/tools/maven/suppressions.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +