Skip to content

Comments

Upgrade OpenJDK from 21 to 25#43

Merged
xerial merged 1 commit intomainfrom
upgrade/openjdk-25
Oct 31, 2025
Merged

Upgrade OpenJDK from 21 to 25#43
xerial merged 1 commit intomainfrom
upgrade/openjdk-25

Conversation

@xerial
Copy link
Member

@xerial xerial commented Oct 31, 2025

Summary

This PR upgrades the OpenJDK dependency from version 21 to version 25, updating both the main formula and template files.

Changes

  • Updated openjdk@21 to openjdk@25 in dependency declaration
  • Updated Java version references from 21 to 25 in the install method
  • Applied changes to both wvlet.rb and wvlet.rb.template

Test plan

  • Verify the formula builds successfully with OpenJDK 25
  • Confirm the wvlet CLI tool runs correctly with the new JDK version
  • Test on macOS to ensure compatibility

🤖 Generated with Claude Code

- Update openjdk dependency from openjdk@21 to openjdk@25
- Update Java version references from 21 to 25 in formula
- Changes applied to both wvlet.rb and wvlet.rb.template

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello @xerial, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a critical dependency update, moving the wvlet formula's OpenJDK requirement from version 21 to 25. This ensures that the wvlet CLI tool is built and executed against the latest stable Java platform, leveraging newer features and maintaining compatibility with current ecosystem standards.

Highlights

  • OpenJDK Version Upgrade: The primary dependency for OpenJDK has been updated from version 21 to version 25.
  • Java Version References: All internal references to the Java version within the install method have been updated from '21' to '25'.
  • File Updates: These changes have been applied to both the wvlet.rb formula file and its wvlet.rb.template counterpart.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@xerial xerial merged commit 35c7165 into main Oct 31, 2025
1 check passed
@xerial xerial deleted the upgrade/openjdk-25 branch October 31, 2025 06:32
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to upgrade the OpenJDK dependency from version 21 to 25. While the changes are consistent across the formula and template files, there is a critical issue with the chosen dependency. The openjdk@25 formula does not currently exist in Homebrew's core repository, which will cause the installation to fail for users. My review includes comments on both modified files highlighting this issue and suggesting alternative approaches, such as depending on the latest available openjdk formula or waiting for openjdk@25 to become available.


depends_on "openjdk@21"
depends_on "openjdk@25"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The dependency openjdk@25 is not a valid Homebrew formula at this time. The homebrew-core tap does not provide an openjdk@25 formula, which will cause brew install to fail for users. Please use an available formula, such as openjdk for the latest release or openjdk@21 for the LTS version. If Java 25 is a strict requirement, this change should be postponed until an openjdk@25 formula is officially available.


depends_on "openjdk@21"
depends_on "openjdk@25"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The dependency openjdk@25 is not a valid Homebrew formula at this time. The homebrew-core tap does not provide an openjdk@25 formula, which will cause brew install to fail for users. Please use an available formula, such as openjdk for the latest release or openjdk@21 for the LTS version. If Java 25 is a strict requirement, this change should be postponed until an openjdk@25 formula is officially available.

libexec.install Dir["*"]
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", JAVA_HOME: Language::Java.overridable_java_home_env("21")[:JAVA_HOME])
bin.env_script_all_files(libexec/"bin", JAVA_HOME: Language::Java.overridable_java_home_env("25")[:JAVA_HOME])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This line now references Java version "25". This will fail if a Java 25 installation cannot be found. This is contingent on the openjdk@25 dependency being available and installable, which is currently not the case as pointed out in the comment for line 9.

libexec.install Dir["*"]
bin.install Dir[libexec/"bin/*"]
bin.env_script_all_files(libexec/"bin", JAVA_HOME: Language::Java.overridable_java_home_env("21")[:JAVA_HOME])
bin.env_script_all_files(libexec/"bin", JAVA_HOME: Language::Java.overridable_java_home_env("25")[:JAVA_HOME])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This line now references Java version "25". This will fail if a Java 25 installation cannot be found. This is contingent on the openjdk@25 dependency being available and installable, which is currently not the case as pointed out in the comment for line 9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant