This is an automated email from the ASF dual-hosted git repository.

gaoyunhaii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-ml.git

commit 6f1998a877584a1f34989fad2d5f7338a60df10d
Author: Yun Gao <[email protected]>
AuthorDate: Tue Dec 28 00:59:52 2021 +0800

    [hotfix] Remove scala target and fix script errors
    
    1. The release profile must be called apache-release to also deploy
    source and javadoc jars.
    2. Remove the command related to python whl package.
    3. Always relies on scala 2.12.
---
 pom.xml                                      | 4 ++--
 tools/releasing/create_python_sdk_release.sh | 4 ----
 tools/releasing/deploy_staging_jars.sh       | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index 26807b4..d5eb522 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,7 +61,7 @@ under the License.
 
   <properties>
     <flink.shaded.version>12.0</flink.shaded.version>
-    <scala.binary.version>2.11</scala.binary.version>
+    <scala.binary.version>2.12</scala.binary.version>
     <jackson.version>2.10.1</jackson.version>
     <target.java.version>1.8</target.java.version>
     <spotless.version>2.4.2</spotless.version>
@@ -219,7 +219,7 @@ under the License.
       The script can be found under tools/releasing/create_source_release.sh.
     -->
     <profile>
-      <id>release</id>
+      <id>apache-release</id>
       <build>
         <plugins>
           <plugin>
diff --git a/tools/releasing/create_python_sdk_release.sh 
b/tools/releasing/create_python_sdk_release.sh
index 937cc4d..7b51476 100755
--- a/tools/releasing/create_python_sdk_release.sh
+++ b/tools/releasing/create_python_sdk_release.sh
@@ -63,17 +63,13 @@ cd ${PROJECT_ROOT}/flink-ml-python/
 mv dist/* ${RELEASE_DIR}
 
 SOURCE_DIST="apache-flink-ml-$RELEASE_VERSION.tar.gz"
-WHL_VERSION=`echo "$RELEASE_VERSION" | tr - _`
-WHL_DIST="apache_flink_ml-$WHL_VERSION-py3-none-any.whl"
 
 cd ${RELEASE_DIR}
 # Sign sha the files
 if [ "$SKIP_GPG" == "false" ] ; then
     gpg --armor --detach-sig ${SOURCE_DIST}
-    gpg --armor --detach-sig ${WHL_DIST}
 fi
 ${SHASUM} "${SOURCE_DIST}" > "${SOURCE_DIST}.sha512"
-${SHASUM} "${WHL_DIST}" > "${WHL_DIST}.sha512"
 
 echo "Created Python SDK distribution files at $RELEASE_DIR."
 
diff --git a/tools/releasing/deploy_staging_jars.sh 
b/tools/releasing/deploy_staging_jars.sh
index 7c26f63..6f34068 100755
--- a/tools/releasing/deploy_staging_jars.sh
+++ b/tools/releasing/deploy_staging_jars.sh
@@ -42,6 +42,6 @@ fi
 cd ${PROJECT_ROOT}
 
 echo "Deploying to repository.apache.org"
-${MVN} clean deploy -Prelease -DskipTests -DretryFailedDeploymentCount=10 
$CUSTOM_OPTIONS -Dscala-2.12
+${MVN} clean deploy -Papache-release -DskipTests 
-DretryFailedDeploymentCount=10 $CUSTOM_OPTIONS
 
 cd ${CURR_DIR}

Reply via email to