This is an automated email from the ASF dual-hosted git repository.
renqs pushed a commit to branch release-3.2
in repository https://gitbox.apache.org/repos/asf/flink-cdc.git
The following commit(s) were added to refs/heads/release-3.2 by this push:
new 4e985ceb2 [FLINK-36054][cdc][build] Fix Flink CDC parent pom and
release scripts (#3541)
4e985ceb2 is described below
commit 4e985ceb27b16a00d492c548b810c4b9b92503bb
Author: Qingsheng Ren <[email protected]>
AuthorDate: Wed Aug 14 17:11:17 2024 +0800
[FLINK-36054][cdc][build] Fix Flink CDC parent pom and release scripts
(#3541)
---
flink-cdc-cli/pom.xml | 2 +-
flink-cdc-common/pom.xml | 2 +-
flink-cdc-composer/pom.xml | 2 +-
flink-cdc-connect/pom.xml | 2 +-
flink-cdc-dist/pom.xml | 2 +-
flink-cdc-dist/src/main/assembly/assembly.xml | 7 ++
flink-cdc-e2e-tests/pom.xml | 2 +-
flink-cdc-migration-tests/pom.xml | 2 +-
flink-cdc-pipeline-udf-examples/pom.xml | 2 +-
flink-cdc-runtime/pom.xml | 2 +-
pom.xml | 127 +++++---------------------
tools/releasing/create_source_release.sh | 6 +-
12 files changed, 44 insertions(+), 114 deletions(-)
diff --git a/flink-cdc-cli/pom.xml b/flink-cdc-cli/pom.xml
index 0cd2d0de2..c4ec22bbc 100644
--- a/flink-cdc-cli/pom.xml
+++ b/flink-cdc-cli/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-common/pom.xml b/flink-cdc-common/pom.xml
index 10bd9df6f..95f7d5fe0 100644
--- a/flink-cdc-common/pom.xml
+++ b/flink-cdc-common/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-composer/pom.xml b/flink-cdc-composer/pom.xml
index 646f1c867..97c2e0864 100644
--- a/flink-cdc-composer/pom.xml
+++ b/flink-cdc-composer/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-connect/pom.xml b/flink-cdc-connect/pom.xml
index 311038ffa..543d8b46c 100644
--- a/flink-cdc-connect/pom.xml
+++ b/flink-cdc-connect/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-dist/pom.xml b/flink-cdc-dist/pom.xml
index b27233ec0..572302c36 100644
--- a/flink-cdc-dist/pom.xml
+++ b/flink-cdc-dist/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-dist/src/main/assembly/assembly.xml
b/flink-cdc-dist/src/main/assembly/assembly.xml
index 24013f065..600dfcd43 100644
--- a/flink-cdc-dist/src/main/assembly/assembly.xml
+++ b/flink-cdc-dist/src/main/assembly/assembly.xml
@@ -32,6 +32,13 @@ limitations under the License.
<destName>flink-cdc-dist-${revision}.jar</destName>
<fileMode>0644</fileMode>
</file>
+
+ <!-- copy license -->
+ <file>
+ <source>../LICENSE</source>
+ <outputDirectory/>
+ <fileMode>0644</fileMode>
+ </file>
</files>
<fileSets>
diff --git a/flink-cdc-e2e-tests/pom.xml b/flink-cdc-e2e-tests/pom.xml
index 3ac5fe598..28d16beee 100644
--- a/flink-cdc-e2e-tests/pom.xml
+++ b/flink-cdc-e2e-tests/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-migration-tests/pom.xml
b/flink-cdc-migration-tests/pom.xml
index 269c5c0db..3033ef712 100644
--- a/flink-cdc-migration-tests/pom.xml
+++ b/flink-cdc-migration-tests/pom.xml
@@ -21,7 +21,7 @@ limitations under the License.
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.flink</groupId>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-pipeline-udf-examples/pom.xml
b/flink-cdc-pipeline-udf-examples/pom.xml
index 2466482bb..bb38885e4 100644
--- a/flink-cdc-pipeline-udf-examples/pom.xml
+++ b/flink-cdc-pipeline-udf-examples/pom.xml
@@ -21,7 +21,7 @@ limitations under the License.
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.flink</groupId>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<version>${revision}</version>
</parent>
diff --git a/flink-cdc-runtime/pom.xml b/flink-cdc-runtime/pom.xml
index deb297509..c5dbc123f 100644
--- a/flink-cdc-runtime/pom.xml
+++ b/flink-cdc-runtime/pom.xml
@@ -19,7 +19,7 @@ limitations under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<groupId>org.apache.flink</groupId>
<version>${revision}</version>
</parent>
diff --git a/pom.xml b/pom.xml
index 9955a6c56..8bc9c8c2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@ limitations under the License.
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.flink</groupId>
- <artifactId>flink-cdc</artifactId>
+ <artifactId>flink-cdc-parent</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
@@ -51,16 +51,11 @@ limitations under the License.
</license>
</licenses>
- <distributionManagement>
- <snapshotRepository>
- <id>oss</id>
- <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
- </snapshotRepository>
- <repository>
- <id>oss</id>
-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
- </repository>
- </distributionManagement>
+ <scm>
+ <url>https://github.com/apache/flink-cdc</url>
+ <connection>[email protected]:apache/flink-cdc.git</connection>
+
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/flink-cdc.git</developerConnection>
+ </scm>
<properties>
<revision>3.2-SNAPSHOT</revision>
@@ -727,107 +722,35 @@ limitations under the License.
</build>
</profile>
<profile>
- <id>release</id>
+ <!--
+ We're reusing the apache-release build profile defined in the
Apache Parent POM,
+ with one exclusion: do not run the source-release-assembly
execution goal.
+ We have our own scripts to create the source release, which
correctly excludes
+ binaries from distribution tarball.
+ The script can be found under
tools/releasing/create_source_release.sh.
+ -->
+ <id>apache-release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>1.6</version>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.apache.resources</groupId>
+
<artifactId>apache-source-release-assembly-descriptor</artifactId>
+ <version>1.0.6</version>
+ </dependency>
+ </dependencies>
<executions>
<execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <executions>
- <execution>
- <id>enforce-java</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>[1.8,)</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version><!--$NO-MVN-MAN-VER$-->
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>net.ju-n.maven.plugins</groupId>
- <artifactId>checksum-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>artifacts</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <algorithms>
- <algorithm>SHA-256</algorithm>
- </algorithms>
- <failOnError>false</failOnError>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9.1</version><!--$NO-MVN-MAN-VER$-->
- <configuration>
- <quiet>true</quiet>
- <detectOfflineLinks>false</detectOfflineLinks>
- <additionalJOptions combine.children="append">
-
<additionalJOption>-Xdoclint:none</additionalJOption>
- </additionalJOptions>
- </configuration>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
+ <id>source-release-assembly</id>
+ <!-- disable the execution -->
+ <phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.1</version>
- <configuration>
- <mavenExecutorId>forked-path</mavenExecutorId>
- <useReleaseProfile>false</useReleaseProfile>
- <arguments>${arguments}
-Psonatype-oss-release</arguments>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
</build>
</profile>
</profiles>
diff --git a/tools/releasing/create_source_release.sh
b/tools/releasing/create_source_release.sh
index 9e9fb3a8d..4fc033191 100755
--- a/tools/releasing/create_source_release.sh
+++ b/tools/releasing/create_source_release.sh
@@ -77,10 +77,10 @@ rsync -a \
--exclude ".travis.yml" \
. flink-cdc-${RELEASE_VERSION}
-tar czf ${RELEASE_DIR}/apache-flink-cdc-${RELEASE_VERSION}-src.tgz
flink-cdc-${RELEASE_VERSION}
-gpg --armor --detach-sig
${RELEASE_DIR}/apache-flink-cdc-${RELEASE_VERSION}-src.tgz
+tar czf ${RELEASE_DIR}/flink-cdc-${RELEASE_VERSION}-src.tgz
flink-cdc-${RELEASE_VERSION}
+gpg --armor --detach-sig ${RELEASE_DIR}/flink-cdc-${RELEASE_VERSION}-src.tgz
cd ${RELEASE_DIR}
-${SHASUM} apache-flink-cdc-${RELEASE_VERSION}-src.tgz >
apache-flink-cdc-${RELEASE_VERSION}-src.tgz.sha512
+${SHASUM} flink-cdc-${RELEASE_VERSION}-src.tgz >
flink-cdc-${RELEASE_VERSION}-src.tgz.sha512
rm -rf ${CLONE_DIR}