GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][build] Switch default JDK to 25 for 5.0.0-M2 by lhotari · Pull Request #26070 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Jun 20, 2026

Copy link
Copy Markdown
Member

Motivation

Making JDK 25 the default was agreed on the dev@ mailing list:
https://lists.apache.org/thread/3zclb8cq0dt95c8f1lh83qxyyj11m8pq

As part of the release planning, 4.3.0 was renamed to 5.0.0-M1:
https://lists.apache.org/thread/1hyrcq11jbczdkmqqw07h5qq6fyfxoj7

5.0.0-M1 ships with Java 21 as the default and is being released from the
already-cut branch-5.0-M1. The switch to Java 25 lands in 5.0.0-M2, which
is the master development line now that the M1 release branch exists. This change
therefore targets master only; branch-5.0-M1 keeps Java 21 as its default.

Modifications

  • gradle/libs.versions.toml: docker-jdk 21 → 25, so the official Pulsar
    Docker image is built on JDK 25 by default.
  • .github/workflows/pulsar-ci.yaml and .github/workflows/pulsar-ci-flaky.yaml
    — make JDK 25 the primary JDK and keep JDK 21 as the secondary scheduled run (swap):
    • workflow_dispatch jdk_major_version input: default 21 → 25 (options reordered 25, 21).
    • Select JDK major version step: the default fallback (pull requests, pushes, and the
      0 12 * * * scheduled run) is now JDK 25; the special-cased 0 6 * * * scheduled run
      now uses JDK 21.
    • Updated the schedule comments to match the new mapping.
  • Left unchanged on purpose: the runtime_jdk: 17 / 21 / 25 shade-run and Native Image
    matrix entries — those exercise specific runtime JDKs regardless of the primary build JDK,
    so they are not part of the swap.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial build/CI configuration change without dedicated test coverage; it is
exercised by the CI workflows themselves, which now build and test on JDK 25 by default.

Does this pull request potentially affect one of the following parts:

  • Anything that affects deployment

The official Pulsar Docker image is now built on JDK 25 by default (docker-jdk = "25").
This applies to the master / 5.0.0-M2 line only; the 5.0.0-M1 release (branch-5.0-M1)
continues to default to Java 21.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari
[improve][build] Switch default JDK to 25 for 5.0.0-M2
3d33dc9
Make JDK 25 the default for the official Docker image (docker-jdk) and
the primary JDK in pulsar-ci / pulsar-ci-flaky, keeping JDK 21 as the
secondary scheduled run. The Java 25 default was agreed on dev@; 5.0.0-M1
(branch-5.0-M1) keeps Java 21, so this targets the master / 5.0.0-M2 line.

Assisted-by: Claude Code (Opus 4.8)
@lhotari
lhotari requested review from Technoboy-, dao-jun, merlimat and nodece June 20, 2026 19:34
@lhotari lhotari added this to the 5.0.0-M2 milestone Jun 20, 2026
dao-jun
dao-jun approved these changes Jun 21, 2026
View reviewed changes
@nodece
nodece merged commit 8def2db into apache:master Jun 22, 2026
45 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Aug 10, 2026
[fix][sec] Upgrade Netty to 4.2.17 to address several CVEs and bugs #26300
Merged
[fix][sec][branch-4.2] Upgrade Netty to 4.1.137 to address several CVEs and bugs #26301
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dao-jun dao-jun dao-jun approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@nodece nodece Awaiting requested review from nodece
@Technoboy- Technoboy- Awaiting requested review from Technoboy-

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

5.0.0-M2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lhotari @dao-jun @nodece
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.