Skip to content

Commit

Permalink
[pom] Use ${revision} replace specific version. (apache#2623)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyCurry30 authored Nov 6, 2023
1 parent e26470f commit d01f0a9
Show file tree
Hide file tree
Showing 34 changed files with 63 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ build-targetatlassian-ide-plugin.xml
*.ipr
*.iws
docs/_build
**/.flattened-pom.xml
2 changes: 1 addition & 1 deletion flink-cdc-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-composer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-connect/flink-cdc-pipeline-connectors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connect</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<properties>
<!-- Because of oceanbase docker image can not expose port quickly, so we need to specify testcontainers version to 1.15.3 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<properties>
<xdb.version>19.3.0.0</xdb.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-source-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-connect/flink-cdc-source-connectors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connect</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-connect/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-e2e-tests/flink-cdc-pipeline-e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-e2e-tests</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-e2e-tests/flink-cdc-source-e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-e2e-tests</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion flink-cdc-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<artifactId>flink-cdc-connectors</artifactId>
<groupId>com.ververica</groupId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
31 changes: 30 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.

<groupId>com.ververica</groupId>
<artifactId>flink-cdc-connectors</artifactId>
<version>3.0-SNAPSHOT</version>
<version>${revision}</version>
<packaging>pom</packaging>

<modules>
Expand Down Expand Up @@ -60,6 +60,7 @@ under the License.
</distributionManagement>

<properties>
<revision>3.0-SNAPSHOT</revision>
<java.version>1.8</java.version>
<scala.binary.version>2.12</scala.binary.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand All @@ -84,6 +85,7 @@ under the License.
<commons-lang3.version>3.12.0</commons-lang3.version>
<json-path.version>2.7.0</json-path.version>
<markBundledAsOptional>true</markBundledAsOptional>
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -465,6 +467,33 @@ under the License.
<doclint>none</doclint>
</configuration>
</plugin>

<!-- This plugin takes effect for Maven version upper more than 3.5.0 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
<executions>
<execution>
<id>flatten</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
<execution>
<id>flatten.clean</id>
<goals>
<goal>clean</goal>
</goals>
<phase>clean</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit d01f0a9

Please sign in to comment.