Skip to content

Migrate service build/runtime configuration to Java 25#113

Draft
patrick-vuong with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-java-25-again
Draft

Migrate service build/runtime configuration to Java 25#113
patrick-vuong with Copilot wants to merge 2 commits into
mainfrom
copilot/migrate-java-25-again

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This updates the project from Java 11 to Java 25 so the service, toolchain, and CI all target the same runtime level. It also applies targeted Java language modernizations introduced by the migration recipe.

  • Java 25 build target and toolchain

    • pom.xml now targets Java 25 (maven.compiler.release/target).
    • Maven plugins were aligned for Java 25 compatibility:
      • maven-compiler-plugin3.15.0
      • maven-surefire-plugin / maven-failsafe-plugin3.5.6
    • Added required test JVM --add-opens flags for newer JDK encapsulation behavior.
  • CI runtime alignment

    • .github/workflows/ci.yml now provisions JDK 25 via actions/setup-java.
  • Code-level Java modernization

    • Applied Java language updates in service/resource code (pattern matching for instanceof, switch expression, unused catch variable _) without changing endpoint behavior.
<!-- pom.xml -->
<maven.compiler.target>25</maven.compiler.target>
<maven.compiler.release>25</maven.compiler.release>
return switch (house) {
    case GRYFFINDOR -> "...";
    case HUFFLEPUFF -> "...";
    case RAVENCLAW -> "...";
    case SLYTHERIN -> "...";
    default -> "...";
};

Based on Moderne Prethink context, this migration was applied via OpenRewrite recipe execution (org.openrewrite.java.migrate.UpgradeToJava25) and repository-level updates.

This change was produced with Moderne CLI and Moderne Agent Tools (MCP), informed by Moderne Prethink context (dependencies, test gaps, project identity).

Copilot AI linked an issue Jun 9, 2026 that may be closed by this pull request
Co-authored-by: patrick-vuong <107423518+patrick-vuong@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate project to Java 25 Migrate service build/runtime configuration to Java 25 Jun 9, 2026
Copilot AI requested a review from patrick-vuong June 9, 2026 01:16
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.

Migrate Java 25

2 participants