Avoid use of StartParameter.getSettingsFile() in _jibSkaffoldFilesV2 when Gradle version is 9 or higher#4462
Conversation
….0 or later before trying to access the settings file start parameter.
|
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. |
Summary of ChangesHello @bmatthews68, 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 updates the Jib Gradle plugin to ensure compatibility with Gradle 9.0 and future versions. It specifically modifies the Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request correctly addresses the issue of using StartParameter.getSettingsFile() on Gradle 9 and higher by adding a version check. The approach maintains backward compatibility for older Gradle versions.
However, I've noticed that no new tests have been added to verify the behavior on Gradle 9 or higher. It is crucial to add a test case that runs with Gradle 9 to confirm that the logic works as expected and to prevent future regressions. The existing test framework seems to support this via withGradleVersion().
jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gradle/skaffold/FilesTaskV2.java
Outdated
Show resolved
Hide resolved
…ng in conditional logic
|
Thanks for the ping, @bmatthews68! I've completed my review of your pull request. Your changes effectively address the compatibility issue with Gradle 9.0 and higher by conditionally handling the Overall, the code is well-structured and adheres to good practices. I have no further comments or suggestions at this time. Great work! |
|
Hi @bmatthews68, thanks for your contribution. It looks good, but it just needs a reformat of the file. |
This PR fixes #4052 for Gradle 9 and higher without breaking backwards compatibility with earlier versions.
Fixes #4052 🛠️