Skip to content

Commit

Permalink
build: set project version with revision (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe authored Mar 20, 2024
1 parent 969383e commit bd23d4e
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
.flattened-pom.xml

### IntelliJ IDEA ###
.idea/*
Expand Down
2 changes: 1 addition & 1 deletion flink-connector-obkv-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the License.
<parent>
<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>flink-connector-obkv-hbase</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-connector-oceanbase-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the License.
<parent>
<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>flink-connector-oceanbase-base</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-connector-oceanbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ under the License.
<parent>
<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>flink-connector-oceanbase</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-sql-connector-obkv-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the License.
<parent>
<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>flink-sql-connector-obkv-hbase</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion flink-sql-connector-oceanbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ under the License.
<parent>
<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
</parent>

<artifactId>flink-sql-connector-oceanbase</artifactId>
Expand Down
28 changes: 27 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.

<groupId>com.oceanbase</groupId>
<artifactId>flink-connector-oceanbase-parent</artifactId>
<version>1.1-SNAPSHOT</version>
<version>${revision}</version>
<packaging>pom</packaging>

<modules>
Expand All @@ -37,6 +37,7 @@ under the License.
</modules>

<properties>
<revision>1.1-SNAPSHOT</revision>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -278,6 +279,31 @@ under the License.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.5.0</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>
<inceptionYear>2023</inceptionYear>
Expand Down

0 comments on commit bd23d4e

Please sign in to comment.