From bd23d4e5f75c9973217263dd421779106f7723ff Mon Sep 17 00:00:00 2001 From: He Wang Date: Wed, 20 Mar 2024 13:28:48 +0800 Subject: [PATCH] build: set project version with revision (#60) --- .gitignore | 1 + flink-connector-obkv-hbase/pom.xml | 2 +- flink-connector-oceanbase-base/pom.xml | 2 +- flink-connector-oceanbase/pom.xml | 2 +- flink-sql-connector-obkv-hbase/pom.xml | 2 +- flink-sql-connector-oceanbase/pom.xml | 2 +- pom.xml | 28 +++++++++++++++++++++++++- 7 files changed, 33 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 867020a0..4c94b05c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ pom.xml.releaseBackup pom.xml.versionsBackup pom.xml.next release.properties +.flattened-pom.xml ### IntelliJ IDEA ### .idea/* diff --git a/flink-connector-obkv-hbase/pom.xml b/flink-connector-obkv-hbase/pom.xml index 4cd25dd9..3a134814 100644 --- a/flink-connector-obkv-hbase/pom.xml +++ b/flink-connector-obkv-hbase/pom.xml @@ -18,7 +18,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} flink-connector-obkv-hbase diff --git a/flink-connector-oceanbase-base/pom.xml b/flink-connector-oceanbase-base/pom.xml index 1b214a4a..c7dccef9 100644 --- a/flink-connector-oceanbase-base/pom.xml +++ b/flink-connector-oceanbase-base/pom.xml @@ -18,7 +18,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} flink-connector-oceanbase-base diff --git a/flink-connector-oceanbase/pom.xml b/flink-connector-oceanbase/pom.xml index 0e106464..db99099d 100644 --- a/flink-connector-oceanbase/pom.xml +++ b/flink-connector-oceanbase/pom.xml @@ -19,7 +19,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} flink-connector-oceanbase diff --git a/flink-sql-connector-obkv-hbase/pom.xml b/flink-sql-connector-obkv-hbase/pom.xml index 58577adf..ebb58a2f 100644 --- a/flink-sql-connector-obkv-hbase/pom.xml +++ b/flink-sql-connector-obkv-hbase/pom.xml @@ -18,7 +18,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} flink-sql-connector-obkv-hbase diff --git a/flink-sql-connector-oceanbase/pom.xml b/flink-sql-connector-oceanbase/pom.xml index 6dc4870b..d23ef496 100644 --- a/flink-sql-connector-oceanbase/pom.xml +++ b/flink-sql-connector-oceanbase/pom.xml @@ -18,7 +18,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} flink-sql-connector-oceanbase diff --git a/pom.xml b/pom.xml index 111bf0ce..b0c8ca52 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ under the License. com.oceanbase flink-connector-oceanbase-parent - 1.1-SNAPSHOT + ${revision} pom @@ -37,6 +37,7 @@ under the License. + 1.1-SNAPSHOT 8 8 UTF-8 @@ -278,6 +279,31 @@ under the License. org.apache.maven.plugins maven-shade-plugin + + org.codehaus.mojo + flatten-maven-plugin + 1.5.0 + + true + resolveCiFriendliesOnly + + + + flatten + + flatten + + process-resources + + + flatten.clean + + clean + + clean + + + 2023