Skip to content

Commit 4ac2072

Browse files
committed
fix
1 parent f317112 commit 4ac2072

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tools/releasing/update_branch_version.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,15 @@ if [ ! -f ${PROJECT_ROOT}/LICENSE.txt ]; then
4242
fi
4343

4444
cd ${PROJECT_ROOT}/flink-doris-connector
45-
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${RELEASE_VERSION}
46-
mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=revision -DnewVersion=${RELEASE_VERSION}
45+
46+
# update version
47+
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${RELEASE_VERSION} -Pflink1,flink2
48+
49+
# versions:set because of artifactId duplicate problem cannot identify flink1, manually update
50+
sed -i '' "s/\${revision}/${RELEASE_VERSION}/g" flink-doris-connector-flink1/pom.xml
51+
52+
# update revision property in parent pom
53+
mvn versions:set-property -DgenerateBackupPoms=false -Dproperty=revision -DnewVersion=${RELEASE_VERSION} -Pflink1
4754

4855
git commit -am "[release] Update version to ${RELEASE_VERSION}"
4956

0 commit comments

Comments
 (0)