Skip to content

Bump spring to 4.0.0#2547

Draft
Tobianas wants to merge 1 commit intoPANTHEONtech:mainfrom
Tobianas:spring_4.0.0
Draft

Bump spring to 4.0.0#2547
Tobianas wants to merge 1 commit intoPANTHEONtech:mainfrom
Tobianas:spring_4.0.0

Conversation

@Tobianas
Copy link
Copy Markdown
Contributor

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @Tobianas, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on upgrading the project's Spring Boot dependencies to version 4.0.0. This update involves not only bumping version numbers but also adapting to changes in artifact naming conventions within the Spring Boot ecosystem, ensuring compatibility and leveraging the latest features and improvements introduced in the new major version.

Highlights

  • Spring Boot Dependency Update: The spring-boot-dependencies version has been upgraded from 3.5.8 to 4.0.0 in lighty-core/lighty-controller-spring-di/pom.xml.
  • Spring Boot Parent Update: The spring-boot-starter-parent version has been upgraded from 3.5.8 to 4.0.0 in lighty-examples/lighty-controller-springboot-netconf/pom.xml.
  • Artifact Renaming: spring-boot-starter: The spring-boot-starter artifact has been replaced with spring-boot-starter-classic for test scope in lighty-core/lighty-controller-spring-di/pom.xml, reflecting changes in Spring Boot 4.0.0.
  • Artifact Renaming: spring-boot-starter-web: The spring-boot-starter-web artifact has been replaced with spring-boot-starter-webmvc in lighty-examples/lighty-controller-springboot-netconf/pom.xml, aligning with new naming conventions in Spring Boot 4.0.0.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Spring Boot dependencies to version 4.0.0 across the lighty-core/lighty-controller-spring-di and lighty-examples/lighty-controller-springboot-netconf modules. While the version bump is appropriate, there are changes to artifact IDs that appear to be incorrect and could lead to build failures or unexpected behavior.

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<artifactId>spring-boot-starter-classic</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The artifact ID spring-boot-starter-classic is not a standard Spring Boot starter. The correct general-purpose starter is spring-boot-starter. If a specific logging implementation is intended, it should be explicitly declared.

Suggested change
<artifactId>spring-boot-starter-classic</artifactId>
<artifactId>spring-boot-starter</artifactId>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<artifactId>spring-boot-starter-webmvc</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The artifact ID spring-boot-starter-webmvc is not a standard Spring Boot starter. For web applications using Spring MVC, the correct starter is spring-boot-starter-web.

Suggested change
<artifactId>spring-boot-starter-webmvc</artifactId>
<artifactId>spring-boot-starter-web</artifactId>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

/gemini even with spring 4?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes, even with Spring Boot 4.x, spring-boot-starter-web is the correct and standard starter for building web applications, including those using Spring MVC. The artifact spring-boot-starter-webmvc is not a standard Spring Boot starter. The spring-boot-starter-web dependency transitively includes all necessary components for Spring MVC applications, such as Tomcat and Jackson. Therefore, the original suggestion to use spring-boot-starter-web remains valid.

@ihrasko ihrasko marked this pull request as draft January 30, 2026 09:17
@ihrasko ihrasko force-pushed the spring_4.0.0 branch 2 times, most recently from 4e81daa to 7456c17 Compare February 27, 2026 15:24
https://github.com/spring-projects/spring-boot/releases/tag/v4.0.0

Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
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