Skip to content

Upgrade Java to LTS 21#5

Merged
tmorin merged 5 commits intomainfrom
copilot/upgrade-java-to-latest-lts
Feb 7, 2026
Merged

Upgrade Java to LTS 21#5
tmorin merged 5 commits intomainfrom
copilot/upgrade-java-to-latest-lts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 7, 2026

  • Update root pom.xml maven.compiler.source and target from 11 to 21
  • Update .sdkmanrc to use Java 21
  • Update .github/workflows/ci-build.yaml to use Java 21
  • Update examples/todo-infra-quarkus/pom.xml maven.compiler.release from 17 to 21
  • Verify the build works with Java 21
  • Run tests to ensure compatibility
  • Remove Java 11 overrides from child modules (core-api, core-scenario, spi-api)
  • Upgrade JaCoCo from 0.8.10 to 0.8.12 for Java 21 support
  • Update GitHub Actions to use setup-java@v4 with temurin distribution
  • Remove Sonar integration completely (cache step, analysis step, and properties)
Original prompt

This section details on the original issue you should resolve

<issue_title>Upgrade java to latest lts</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: tmorin <1984597+tmorin@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade Java to latest LTS version Upgrade Java to LTS 21 Feb 7, 2026
Copilot AI requested a review from tmorin February 7, 2026 14:40
@tmorin tmorin requested review from Copilot and removed request for tmorin February 7, 2026 14:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to upgrade the repository’s Java toolchain/baseline to the current LTS (Java 21), covering local developer tooling, CI, and an example module.

Changes:

  • Bump root Maven compiler source/target from 11 → 21.
  • Update CI build workflow to install JDK 21.
  • Update SDKMAN Java version and Quarkus example maven.compiler.release to 21.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
pom.xml Sets root compiler source/target to 21 for the multi-module build.
examples/todo-infra-quarkus/pom.xml Compiles the Quarkus example with --release 21.
.sdkmanrc Pins local Java to 21.0.10-tem.
.github/workflows/ci-build.yaml Updates CI to use Java 21.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pom.xml
Comment thread pom.xml
Comment thread .github/workflows/ci-build.yaml
@tmorin
Copy link
Copy Markdown
Owner

tmorin commented Feb 7, 2026

@copilot apply all changes from the pr

… fix GHA setup

Co-authored-by: tmorin <1984597+tmorin@users.noreply.github.com>
Copilot AI requested a review from tmorin February 7, 2026 14:53
@tmorin tmorin requested review from Copilot and removed request for tmorin February 7, 2026 15:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tmorin
Copy link
Copy Markdown
Owner

tmorin commented Feb 7, 2026

@copilot check the build which failed

Co-authored-by: tmorin <1984597+tmorin@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 7, 2026

@copilot check the build which failed

The build failure was caused by the Sonar analysis step attempting to run without a SONAR_TOKEN (which isn't available for PRs from copilot branches). The actual build with Java 21 succeeded.

Fixed in 1c88cdd by making the Sonar analysis step conditional - it now only runs when SONAR_TOKEN is available. The Java 21 upgrade is working correctly.

Copilot AI requested a review from tmorin February 7, 2026 15:54
@tmorin
Copy link
Copy Markdown
Owner

tmorin commented Feb 7, 2026

@copilot in fact remove the sonar integration is over. we can skip the build but the upload of the findings to sonarcloud is not possible any more.

Co-authored-by: tmorin <1984597+tmorin@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Feb 7, 2026

@copilot in fact remove the sonar integration is over. we can skip the build but the upload of the findings to sonarcloud is not possible any more.

Removed all Sonar integration in 9faa7b0:

  • Removed "Cache SonarCloud packages" step from CI workflow
  • Removed "Analyze with Sonar" step from CI workflow
  • Removed sonar.organization and sonar.host.url properties from pom.xml

The CI now runs only the build and deployment steps.

Copilot AI requested a review from tmorin February 7, 2026 17:28
@tmorin tmorin marked this pull request as ready for review February 7, 2026 17:35
@tmorin tmorin requested a review from Copilot February 7, 2026 17:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tmorin tmorin merged commit 69c302e into main Feb 7, 2026
8 checks passed
@tmorin tmorin deleted the copilot/upgrade-java-to-latest-lts branch February 7, 2026 17:40
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.

Upgrade java to latest lts

3 participants