[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.
diff --git a/pom.xml b/pom.xml
index 26807b4..d5eb522 100644
--- a/pom.xml
+++ b/pom.xml
@@ -61,7 +61,7 @@
<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 @@
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 @@
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 @@
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}