This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new b132175118 [release] Add script for release flink2, spark4 and
paimon-iceberg (#6405)
b132175118 is described below
commit b1321751183c7c8df7f09020938418e2177f4817
Author: yuzelin <[email protected]>
AuthorDate: Wed Oct 15 21:54:03 2025 +0800
[release] Add script for release flink2, spark4 and paimon-iceberg (#6405)
---
tools/releasing/deploy_staging_jars_for_jdk11.sh | 53 ++++++++++++++++++++++++
tools/releasing/deploy_staging_jars_for_jdk17.sh | 52 +++++++++++++++++++++++
2 files changed, 105 insertions(+)
diff --git a/tools/releasing/deploy_staging_jars_for_jdk11.sh
b/tools/releasing/deploy_staging_jars_for_jdk11.sh
new file mode 100755
index 0000000000..44712e351c
--- /dev/null
+++ b/tools/releasing/deploy_staging_jars_for_jdk11.sh
@@ -0,0 +1,53 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##
+## Variables with defaults (if not overwritten by environment)
+##
+MVN=${MVN:-mvn}
+CUSTOM_OPTIONS=${CUSTOM_OPTIONS:-}
+
+# fail immediately
+set -o errexit
+set -o nounset
+
+CURR_DIR=`pwd`
+BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+PROJECT_ROOT="${BASE_DIR}/../../"
+
+# Sanity check to ensure that resolved paths are valid; a LICENSE file should
always exist in project root
+if [ ! -f ${PROJECT_ROOT}/LICENSE ]; then
+ echo "Project root path ${PROJECT_ROOT} is not valid; script may be in the
wrong directory."
+ exit 1
+fi
+
+###########################
+
+cd ${PROJECT_ROOT}
+
+echo "Building flink2 and iceberg modules"
+${MVN} clean install -Pdocs-and-source,flink2 -DskipTests \
+-pl
org.apache.paimon:paimon-flink-2.0,org.apache.paimon:paimon-flink-2.1,org.apache.paimon:paimon-iceberg
-am $CUSTOM_OPTIONS
+
+echo "Deploying flink2 and iceberg modules to repository.apache.org"
+${MVN} deploy -Papache-release,docs-and-source,flink2 -DskipTests
-DretryFailedDeploymentCount=10 \
+-pl
org.apache.paimon:paimon-flink-2.0,org.apache.paimon:paimon-flink-2.1,org.apache.paimon:paimon-flink2-common,org.apache.paimon:paimon-iceberg
$CUSTOM_OPTIONS
+
+cd ${CURR_DIR}
diff --git a/tools/releasing/deploy_staging_jars_for_jdk17.sh
b/tools/releasing/deploy_staging_jars_for_jdk17.sh
new file mode 100755
index 0000000000..d01f84d76e
--- /dev/null
+++ b/tools/releasing/deploy_staging_jars_for_jdk17.sh
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##
+## Variables with defaults (if not overwritten by environment)
+##
+MVN=${MVN:-mvn}
+CUSTOM_OPTIONS=${CUSTOM_OPTIONS:-}
+
+# fail immediately
+set -o errexit
+set -o nounset
+
+CURR_DIR=`pwd`
+BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+PROJECT_ROOT="${BASE_DIR}/../../"
+
+# Sanity check to ensure that resolved paths are valid; a LICENSE file should
always exist in project root
+if [ ! -f ${PROJECT_ROOT}/LICENSE ]; then
+ echo "Project root path ${PROJECT_ROOT} is not valid; script may be in the
wrong directory."
+ exit 1
+fi
+
+###########################
+
+cd ${PROJECT_ROOT}
+
+echo "Building spark4 module"
+${MVN} clean install -Pdocs-and-source,spark4 -DskipTests -pl
paimon-spark/paimon-spark-4.0 -am $CUSTOM_OPTIONS
+
+echo "Deploying spark4 module to repository.apache.org"
+${MVN} deploy -Papache-release,docs-and-source,spark4 -DskipTests
-DretryFailedDeploymentCount=10 \
+ -pl
org.apache.paimon:paimon-spark-common_2.13,org.apache.paimon:paimon-spark4-common,org.apache.paimon:paimon-spark-4.0
$CUSTOM_OPTIONS
+
+cd ${CURR_DIR}