Skip to content

refactor: Fixes #947 Update Spring Boot version , Spring AI version, organize imports#948

Open
ddobrin wants to merge 8 commits intogoogle:mainfrom
ddobrin:spring-ai-update
Open

refactor: Fixes #947 Update Spring Boot version , Spring AI version, organize imports#948
ddobrin wants to merge 8 commits intogoogle:mainfrom
ddobrin:spring-ai-update

Conversation

@ddobrin
Copy link
Contributor

@ddobrin ddobrin commented Mar 4, 2026

Update Spring Boot version to 4.0.2, update Spring AI to 2.0.0-M2, organize corresponding imports.

Note: Jackson has a minor update from 2.19.0 to 2.20.0.
Spring Boot 4.x uses Jackson 3, however with switching to the jackson-bom the major version remains the same

Modeuls updated:

  • /dev
  • /contrib/spring-ai

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 essential dependency upgrades and compatibility adjustments to keep the project current with the latest Spring ecosystem. It primarily updates Spring Boot, Spring AI, and Jackson versions, streamlining dependency management and ensuring the application remains stable and performant with newer framework releases. These changes are crucial for leveraging new features, security patches, and performance improvements offered by the updated libraries.

Highlights

  • Spring Boot Version Update: The project's core Spring Boot dependency has been upgraded from version 3.4.1 to 4.0.2, reflecting a significant framework update.
  • Spring AI Version Update: The Spring AI integration module has been updated to version 2.0.0-M2, bringing the latest features and improvements from the Spring AI project.
  • Jackson Dependency Management Refinement: Jackson dependencies have been updated to version 2.20.2 and are now managed via the jackson-bom (Bill of Materials), simplifying dependency declarations and ensuring consistent versions across modules. Individual Jackson dependencies were removed as they are now implicitly managed by the BOM.
  • Spring Boot 4.x Compatibility Adjustments: To align with Spring Boot 4.x changes, the spring-boot-starter-webmvc-test dependency was added, and import statements for AutoConfigureMockMvc were updated to reflect its new package location.

🧠 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.

Changelog
  • contrib/spring-ai/pom.xml
    • Updated the spring-ai.version property from 1.1.0 to 2.0.0-M2.
  • dev/pom.xml
    • Added spring-boot-starter-webmvc-test as a test-scoped dependency.
  • dev/src/test/java/com/google/adk/web/AdkWebServerTest.java
    • Updated the import statement for AutoConfigureMockMvc to its new package org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc.
  • dev/src/test/java/com/google/adk/web/AdkWebServerUITest.java
    • Updated the import statement for AutoConfigureMockMvc to its new package org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc.
  • pom.xml
    • Updated the spring-boot.version property from 3.4.1 to 4.0.2.
    • Updated the jackson.version property from 2.19.0 to 2.20.2.
    • Added jackson-bom to the dependencyManagement section to manage Jackson dependencies centrally.
    • Removed individual Jackson core, annotations, databind, datatype-jdk8, datatype-jsr310, and dataformat-yaml dependencies from dependencyManagement, as they are now managed by jackson-bom.
Activity
  • No specific activity (comments, reviews, progress) has been recorded for this pull request yet.
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
Contributor

@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 successfully updates the Spring Boot version to 4.0.2, Spring AI to 2.0.0-M2, and Jackson to 2.20.2. The changes correctly reflect these version bumps across the pom.xml files, including the adoption of jackson-bom for streamlined dependency management. The corresponding import statement adjustments in the test files (AdkWebServerTest.java and AdkWebServerUITest.java) are also correctly applied, ensuring compatibility with the new Spring Boot version. Overall, the changes are well-executed and align with the stated objective of modernizing the project's dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants