Migrate to Java 25#82
Draft
patrick-vuong with Copilot wants to merge 3 commits into
Draft
Conversation
Open
Agent-Logs-Url: https://github.com/moderneinc/yet-another-dropwizard-service/sessions/a0f88305-a41d-46f0-a34e-7c524efda404 Co-authored-by: patrick-vuong <107423518+patrick-vuong@users.noreply.github.com>
Applied org.openrewrite.java.migrate.UpgradeToJava25 recipe which: - Updates Maven compiler settings from Java 11 to 25 - Upgrades maven-compiler-plugin 3.11.0 -> 3.15.0 - Upgrades maven-surefire/failsafe-plugin 3.2.2 -> 3.5.5 - Adds --add-opens JVM args for test plugins - Updates CI workflow to use JDK 25 - Converts instanceof-then-cast to pattern matching - Converts traditional switch to switch expressions - Uses unnamed catch variables (_) where exception is unused - Uses String.formatted() instead of String.format() - Uses flexible main method (void main instead of public static void main) This change was produced with Moderne CLI and Moderne Agent Tools (MCP). MCP was unavailable for part of this work; Moderne CLI fallback was used. Agent-Logs-Url: https://github.com/moderneinc/yet-another-dropwizard-service/sessions/a0f88305-a41d-46f0-a34e-7c524efda404 Co-authored-by: patrick-vuong <107423518+patrick-vuong@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrate project from Java 11 to Java 25 using OpenRewrite's
UpgradeToJava25recipe.Build & CI
--add-opensargs for module encapsulationCode modernization
catch (IllegalArgumentException _)where exception is unusedString.formatted()— replacesString.format()void main(String[])instead ofpublic static void main(String[])This change was produced with Moderne CLI and Moderne Agent Tools (MCP).