Skip to content

Execute modernization plan: Upgrade to Java 21 and Spring Boot 3.4 LTS#13

Draft
Copilot wants to merge 5 commits intoupgrade-to-lts-20260212103030from
copilot/execute-upgrade-plan
Draft

Execute modernization plan: Upgrade to Java 21 and Spring Boot 3.4 LTS#13
Copilot wants to merge 5 commits intoupgrade-to-lts-20260212103030from
copilot/execute-upgrade-plan

Conversation

Copy link

Copilot AI commented Feb 12, 2026

Executes the automated modernization plan from .github/modernize/upgrade-to-lts-20260212103030 using OpenRewrite recipes to upgrade the PhotoAlbum application to latest LTS versions.

Upgrades

  • Java: 1.8 → 21
  • Spring Boot: 2.7.18 → 3.4.2
  • Spring Framework: 5.3.x → 6.x (transitive)
  • Namespace: javax.* → jakarta.*

Changes

Dependencies (pom.xml)

  • Updated java.version, maven.compiler.source/target to 21
  • Updated spring-boot-starter-parent to 3.4.2
  • Oracle JDBC driver: 21.5.0.0 → 23.5.0.24.07
  • H2 Database: 2.1.214 → 2.3.232

Code Modernization

  • Photo.java: Migrated persistence/validation imports to jakarta namespace
  • Controllers: Updated to Optional.isEmpty() and simplified annotations
  • PhotoServiceImpl: Applied Java 21 idioms (.formatted(), .getFirst())

Documentation

  • Generated task summary: .github/modernization/001-upgrade-java-spring-boot/modernization-summary.md
  • Updated tasks.json with execution status and success criteria results

Build & Test Status

  • ✅ Build: SUCCESS (requires Java 21)
  • ✅ Tests: 1/1 passing
  • ⚠️ Security: CVE-2024-47554 in commons-io:2.11.0 (HIGH) - recommend upgrading to 2.18.0

Migration Strategy

Applied OpenRewrite recipes in two milestones:

  1. Upgrade to Java 21 + Spring Boot 3.3.x (automated transformation)
  2. Update to Spring Boot 3.4.2 (dependency bump)

Total changes: 6 files, 16 insertions(+), 16 deletions(-)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repository.apache.org
    • Triggering command: /usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/PhotoAlbum-Java/PhotoAlbum-Java org.codehaus.plexus.classworlds.launcher.Launcher --quiet rewrite:run (dns block)
  • repository.jboss.org
    • Triggering command: /usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/PhotoAlbum-Java/PhotoAlbum-Java org.codehaus.plexus.classworlds.launcher.Launcher --quiet rewrite:run (dns block)
  • repository.ow2.org
    • Triggering command: /usr/lib/jvm/temurin-8-jdk-amd64/bin/java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/PhotoAlbum-Java/PhotoAlbum-Java org.codehaus.plexus.classworlds.launcher.Launcher --quiet rewrite:run (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Call skill execute-modernization-plan to Execute modernization plan

Using the below context

  • modernization-description: execute the upgrade plan
  • modernization-work-folder: .github\modernize\upgrade-to-lts-20260212103030

This pull request contains changes made by the Modernization Cloud Coding Agent.


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

Copilot AI changed the title [WIP] Execute upgrade plan for modernization Execute modernization plan: Upgrade to Java 21 and Spring Boot 3.4 LTS Feb 12, 2026
Copilot AI requested a review from qianwens February 12, 2026 10:43
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.

2 participants