Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Support Java 21 #28120

Closed
1 of 15 tasks
deathstarjanitor opened this issue Aug 23, 2023 · 3 comments
Closed
1 of 15 tasks

[Feature Request]: Support Java 21 #28120

deathstarjanitor opened this issue Aug 23, 2023 · 3 comments

Comments

@deathstarjanitor
Copy link

What would you like to happen?

Java 21 is expected to release in September, 2023.
https://www.java.com/releases/matrix/

Beam should support building Java pipelines using the Java 21 SDK.
Beam should also support running on the Java 21 runtime.

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@Abacn
Copy link
Contributor

Abacn commented Sep 29, 2023

Currently, testing on Java11 and 17 are configured with "giant" gradle property compileAndRunTestsWithJava11 and compileAndRunTestsWithJava17 . As we add one more version, we should just have a testJavaVersion separate from beamJavaVersion rather than a boolean with a giant name that sounds more complicated than it is.

This refactor will be done as part of Java 21 support

This was referenced Sep 29, 2023
@Abacn
Copy link
Contributor

Abacn commented Oct 6, 2023

Gradle 8.4 just released: https://docs.gradle.org/8.4/release-notes.html support compile and test with Java 21 now

@Abacn
Copy link
Contributor

Abacn commented Oct 31, 2023

PreCommit added and passed on master branch: https://github.com/apache/beam/actions/runs/6709013800/job/18231112331

mark this task as fixed for now.

There are indeed followup works, e.g.

@Abacn Abacn closed this as completed Oct 31, 2023
@github-actions github-actions bot added this to the 2.52.0 Release milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants