diff --git a/.github/workflows/beam_PostCommit_Python.yml b/.github/workflows/beam_PostCommit_Python.yml index 03c76f7253ed..2a98ccb0efb0 100644 --- a/.github/workflows/beam_PostCommit_Python.yml +++ b/.github/workflows/beam_PostCommit_Python.yml @@ -78,6 +78,9 @@ jobs: - name: Setup environment uses: ./.github/actions/setup-environment-action with: + java-version: | + 21 + 11 python-version: ${{ matrix.python_version }} - name: Install docker compose run: | @@ -94,6 +97,7 @@ jobs: with: gradle-command: :python${{steps.set_py_ver_clean.outputs.py_ver_clean}}PostCommit arguments: | + -Pjava21Home=$JAVA_HOME_21_X64 \ -PuseWheelDistribution \ -PpythonVersion=${{ matrix.python_version }} \ env: diff --git a/.github/workflows/beam_Release_NightlySnapshot.yml b/.github/workflows/beam_Release_NightlySnapshot.yml index ac473472f970..6126cf199b6b 100644 --- a/.github/workflows/beam_Release_NightlySnapshot.yml +++ b/.github/workflows/beam_Release_NightlySnapshot.yml @@ -61,7 +61,9 @@ jobs: - name: Setup environment uses: ./.github/actions/setup-environment-action with: - java-version: default + java-version: | + 21 + 11 disable-cache: true - name: Auth on snapshot repository run: | @@ -78,6 +80,7 @@ jobs: - name: run Publish script run: | ./gradlew publish --max-workers=8 -Ppublishing -PskipCheckerFramework \ + -Pjava21Home=$JAVA_HOME_21_X64 \ --continue -Dorg.gradle.jvmargs=-Xms2g -Dorg.gradle.jvmargs=-Xmx6g \ -Dorg.gradle.vfs.watch=false -Pdocker-pull-licenses \ -Dorg.gradle.internal.http.connectionTimeout=60000 \ diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 329e543a9e7b..08fa59d8ceb4 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -66,7 +66,9 @@ jobs: uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '11' + java-version: | + 21 + 11 - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@111c56156bcc6918c056dbef52164cfa583dc549 @@ -92,7 +94,7 @@ jobs: - name: Configure git run: git config credential.helper store - name: Stage Java Artifacts into Maven - run: ./gradlew publish -Psigning.gnupg.keyName=${{steps.import_gpg.outputs.fingerprint}} -PisRelease --no-daemon --no-parallel + run: ./gradlew publish -Psigning.gnupg.keyName=${{steps.import_gpg.outputs.fingerprint}} -PisRelease -Pjava21Home=$JAVA_HOME_21_X64 --no-daemon --no-parallel stage_java_source: diff --git a/runners/flink/job-server/flink_job_server.gradle b/runners/flink/job-server/flink_job_server.gradle index 1c610477a444..90890a7d5856 100644 --- a/runners/flink/job-server/flink_job_server.gradle +++ b/runners/flink/job-server/flink_job_server.gradle @@ -277,6 +277,12 @@ createCrossLanguageValidatesRunnerTask( ], ) +shadowJar { + manifest { + attributes(["Multi-Release": true]) + } +} + // miniCluster jar starts an embedded Flink cluster intended for use in testing. tasks.register("miniCluster", Jar) { dependsOn shadowJar diff --git a/sdks/python/apache_beam/io/external/xlang_debeziumio_it_test.py b/sdks/python/apache_beam/io/external/xlang_debeziumio_it_test.py index f343f88ec802..197cc97e840e 100644 --- a/sdks/python/apache_beam/io/external/xlang_debeziumio_it_test.py +++ b/sdks/python/apache_beam/io/external/xlang_debeziumio_it_test.py @@ -16,6 +16,7 @@ # import logging +import subprocess import unittest from apache_beam.io.debezium import DriverClassName @@ -24,6 +25,7 @@ from apache_beam.testing.test_pipeline import TestPipeline from apache_beam.testing.util import assert_that from apache_beam.testing.util import equal_to +from apache_beam.utils import subprocess_server # pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports try: @@ -34,12 +36,32 @@ NUM_RECORDS = 1 +def _disable_debezium_test(): + # disable if run on