[FLINK-33578][ci] Removes scala-2.12 system property

We're only relying on Scala 2.12 (and the plan is to drop it entirely for 2.x). The Scala prefix is still present in CI, though. This commit cleans it up entirely. This clean up step helps reduce the noise in the GHA workflow change (FLINK-27075)
pull/23744/head
Matthias Pohl 1 year ago
parent febbbf3c09
commit d1f124300c

@ -76,7 +76,7 @@ stages:
vmImage: 'ubuntu-20.04'
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12"
environment: PROFILE="-Dflink.hadoop.version=2.10.2"
run_end_to_end: false
container: flink-build-container
jdk: 8
@ -96,5 +96,5 @@ stages:
- template: tools/azure-pipelines/build-python-wheels.yml
parameters:
stage_name: cron_python_wheels
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12"
environment: PROFILE="-Dflink.hadoop.version=2.10.2"
container: flink-build-container

@ -128,7 +128,7 @@ Flink 有使用 [Scala](http://scala-lang.org) 来写的 API库和运行时
要针对特定的二进制 Scala 版本进行构建,可以使用
```bash
mvn clean install -DskipTests -Dscala-2.12 -Dscala.version=<scala version>
mvn clean install -DskipTests -Dscala.version=<scala version>
```
{{< top >}}

@ -125,7 +125,7 @@ Since version 1.15 Flink dropped the support of Scala 2.11 and it will use Scala
To build against a specific binary Scala version you can use:
```bash
mvn clean install -DskipTests -Dscala-2.12 -Dscala.version=<scala version>
mvn clean install -DskipTests -Dscala.version=<scala version>
```

@ -965,9 +965,7 @@ under the License.
<scala.binary.version>2.12</scala.binary.version>
</properties>
<activation>
<property>
<name>!old-and-unsupported-scala-version</name>
</property>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>

@ -69,7 +69,7 @@ stages:
name: Default
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12"
environment: PROFILE="-Dflink.hadoop.version=2.10.2"
run_end_to_end: false
container: flink-build-container
jdk: 8
@ -113,7 +113,7 @@ stages:
vmImage: 'ubuntu-20.04'
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12"
environment: PROFILE="-Dflink.hadoop.version=2.10.2"
run_end_to_end: true
container: flink-build-container
jdk: 8
@ -135,7 +135,7 @@ stages:
name: Default
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12 -Djdk11 -Pjava11-target"
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Djdk11 -Pjava11-target"
run_end_to_end: true
container: flink-build-container
jdk: 11
@ -146,7 +146,7 @@ stages:
name: Default
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12 -Djdk11 -Djdk17 -Pjava17-target"
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Djdk11 -Djdk17 -Pjava17-target"
run_end_to_end: true
container: flink-build-container
jdk: 17
@ -157,7 +157,7 @@ stages:
name: Default
e2e_pool_definition:
vmImage: 'ubuntu-20.04'
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12 -Penable-adaptive-scheduler"
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Penable-adaptive-scheduler"
run_end_to_end: true
container: flink-build-container
jdk: 8
@ -172,5 +172,5 @@ stages:
- template: build-python-wheels.yml
parameters:
stage_name: cron_python_wheels
environment: PROFILE="-Dflink.hadoop.version=2.10.2 -Dscala-2.12"
environment: PROFILE="-Dflink.hadoop.version=2.10.2"
container: flink-build-container

@ -20,7 +20,6 @@
##
## Variables with defaults (if not overwritten by environment)
##
SCALA_VERSION=${SCALA_VERSION:-none}
SKIP_GPG=${SKIP_GPG:-false}
MVN=${MVN:-mvn}
@ -58,20 +57,14 @@ mkdir -p ${PYTHON_RELEASE_DIR}
# build maven package, create Flink distribution, generate signature
make_binary_release() {
FLAGS=""
SCALA_VERSION=$1
echo "Creating binary release, SCALA_VERSION: ${SCALA_VERSION}"
dir_name="flink-$RELEASE_VERSION-bin-scala_${SCALA_VERSION}"
if [ $SCALA_VERSION = "2.12" ]; then
FLAGS="-Dscala-2.12"
else
echo "Invalid Scala version ${SCALA_VERSION}"
fi
local DEFAULT_SCALA_VERSION
DEFAULT_SCALA_VERSION="2.12"
echo "Creating binary release"
# the scala version is still included in the name to not break "backwards-compatibility" of the naming scheme
dir_name="flink-$RELEASE_VERSION-bin-scala_${DEFAULT_SCALA_VERSION}"
# enable release profile here (to check for the maven version)
$MVN clean package $FLAGS -Prelease -pl flink-dist -am -Dgpg.skip -Dcheckstyle.skip=true -DskipTests
$MVN clean package -Prelease -pl flink-dist -am -Dgpg.skip -Dcheckstyle.skip=true -DskipTests
cd flink-dist/target/flink-${RELEASE_VERSION}-bin
${FLINK_DIR}/tools/releasing/collect_license_files.sh ./flink-${RELEASE_VERSION} ./flink-${RELEASE_VERSION}
@ -165,10 +158,5 @@ make_python_release() {
cd ${FLINK_DIR}
}
if [ "$SCALA_VERSION" == "none" ]; then
make_binary_release "2.12"
make_python_release
else
make_binary_release "$SCALA_VERSION"
make_python_release
fi
make_binary_release
make_python_release

@ -43,5 +43,4 @@ echo "Deploying to repository.apache.org"
COMMON_OPTIONS="-Prelease,docs-and-source -DskipTests -DretryFailedDeploymentCount=10 $CUSTOM_OPTIONS"
echo "Deploying Scala 2.12 version"
$MVN clean deploy $COMMON_OPTIONS -Dscala-2.12
$MVN clean deploy $COMMON_OPTIONS

Loading…
Cancel
Save