Skip to content

Update gradle to 8.14.4#4475

Open
mluckam wants to merge 16 commits intoGoogleContainerTools:masterfrom
mluckam:gradle_update
Open

Update gradle to 8.14.4#4475
mluckam wants to merge 16 commits intoGoogleContainerTools:masterfrom
mluckam:gradle_update

Conversation

@mluckam
Copy link

@mluckam mluckam commented Jan 28, 2026

Fixes #4474 🛠️

unit test failure due to incompatible API versions
Previous spring boot version, 2.2.11.RELEASE used gradle API version
4.10.3
(https://github.com/spring-projects/spring-boot/blob/v2.2.11.RELEASE/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/gradle/wrapper/gradle-wrapper.properties)
Current spring boot vesrion, 2.7.18 (latest allowed with java 8) uses
gradle API version 7.6.3
(https://github.com/spring-projects/spring-boot/blob/v2.7.18/gradle/wrapper/gradle-wrapper.properties)
functionality was addressed by spring boot in 2.5.0, and support for
this version ended 2023-08.  The check within jib could be removed as
well, but it does not get triggered since spring boot handles this
already, so it is safe to leave in.
https://spring.io/projects/spring-boot#support
https://github.com/GoogleContainerTools/jib/blob/v3.5.2-gradle/jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/JibPlugin.java#L166-L183
    Gradle-generated 'propName value' or 'propName(value)' syntax in Groovy DSL has been deprecated
    Calling setCanBeResolved(true) on configuration has been deprecated and was not needed
https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#configurations_allowed_usage
    The 'zstdSupport' feature was created using the main source set. This behavior has been deprecated.
https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#deprecate_register_feature_main_source_set
    Unresolvable link in javadoc tag with value FilesMojoV2#collectWatchParameters found in jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/skaffold/SkaffoldConfiguration.java
@google-cla
Copy link

google-cla bot commented Jan 28, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @mluckam, 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 significantly modernizes the project's build system by upgrading Gradle to its latest stable version, 8.14.4. This foundational update ensures compatibility with newer development environments and leverages recent Gradle features, while also addressing necessary adjustments in plugin configurations and build scripts. The changes streamline the build process, enhance maintainability, and prepare the project for future advancements in the Java and Gradle ecosystems.

Highlights

  • Gradle Upgrade: The project's Gradle version has been updated from 6.9.2 to 8.14.4, including corresponding updates to the Gradle wrapper scripts (gradlew, gradlew.bat) and build configurations.
  • Plugin Version Bumps: Several Gradle plugins, such as 'net.researchgate.release' and 'io.freefair.maven-plugin', have been updated to their latest compatible versions.
  • Build Script Modernization: Build configurations in 'build.gradle' files have been modernized, including encapsulating Java compatibility settings in a 'java { ... }' block, refining transitive dependency removal logic, and updating test report output paths.
  • Release Branch Configuration Update: The 'requireBranch' property for Git release configurations across various subprojects now uses the 'set()' method for improved syntax and compatibility.
  • Spring Boot Compatibility: The 'spring-boot-gradle-plugin' has been updated to version 2.7.18, leading to adjustments in related test cases to align with changes in Spring Boot's 'jar' task behavior and artifact naming conventions.
  • Jib Core Zstd Support Enhancement: The 'jib-core' module now uses a dedicated 'zstdSupport' source set for its Zstd compression feature, improving modularity.

🧠 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
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 updates Gradle from version 6.9.2 to 8.14.4, along with several Gradle plugins to versions compatible with Gradle 8. The changes include updating the Gradle wrapper, modifying build scripts to use modern Gradle APIs and syntax (such as lazy properties and the java extension), and adjusting test code to align with behavior changes in updated dependencies like the Spring Boot plugin. The refactoring of the build logic is well-executed and necessary for the upgrade. The overall changes are correct and improve the build's robustness and maintainability. I have no specific comments as the implementation looks solid.

@mluckam mluckam mentioned this pull request Feb 3, 2026
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.

Update gradle to 8.14.4

1 participant