Skip to content

Migrate build/runtime baseline to Java 25 and align CI/docs#111

Draft
PaulaPaul with Copilot wants to merge 3 commits into
mainfrom
copilot/migrate-to-java-25-9bf01da7-0893-4bfe-a107-0b11000ffbee
Draft

Migrate build/runtime baseline to Java 25 and align CI/docs#111
PaulaPaul with Copilot wants to merge 3 commits into
mainfrom
copilot/migrate-to-java-25-9bf01da7-0893-4bfe-a107-0b11000ffbee

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This updates the service from Java 11 to Java 25 end-to-end so the project compiles, runs, and documents against the new baseline. It also applies selective Java language modernizations in touched service/resource paths.

  • Build + toolchain baseline

    • Set Maven Java properties to 25 (source, target, release).
    • Updated compiler/test plugins to Java-25-compatible versions (maven-compiler-plugin 3.15.0, surefire/failsafe 3.5.6).
    • Consolidated repeated test JVM module-open args into a shared Maven property for consistency.
  • CI runtime alignment

    • Switched GitHub Actions Java setup from JDK 11 to JDK 25.
  • Source-level modernization (Java 25-capable syntax)

    • Replaced legacy type-check/cast branches with pattern matching in WizardService.
    • Converted house-description switch to a switch expression.
    • Adopted unnamed catch variable where exception binding is unused.
  • Developer documentation

    • Updated README tech-stack/prerequisite references from Java 11 to Java 25.
// before
if (event instanceof Wizard) {
    Wizard w = (Wizard) event;
    return "Wizard registration: " + w.getFirstName() + " " + w.getLastName();
}

// after
if (event instanceof Wizard w) {
    return "Wizard registration: " + w.getFirstName() + " " + w.getLastName();
}

Copilot AI linked an issue Jun 8, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits June 8, 2026 01:09
Co-authored-by: PaulaPaul <8395352+PaulaPaul@users.noreply.github.com>
Co-authored-by: PaulaPaul <8395352+PaulaPaul@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate project to Java 25 Migrate build/runtime baseline to Java 25 and align CI/docs Jun 8, 2026
Copilot AI requested a review from PaulaPaul June 8, 2026 01:13
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 to Java 25

2 participants