Upgrade to Gradle 9.4#20833
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit c364704.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit f2b556b)Here are some key observations to aid the review process:
|
|
❌ Gradle check result for c364704: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for c364704: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
c364704 to
72e5a11
Compare
|
Persistent review updated to latest commit 72e5a11 |
|
@reta I ran into failures with the previous version that used
We'll see if this works... |
|
❌ Gradle check result for 72e5a11: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
72e5a11 to
929105f
Compare
|
Persistent review updated to latest commit 929105f |
|
❌ Gradle check result for 929105f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
929105f to
5c2f141
Compare
|
Persistent review updated to latest commit 5c2f141 |
|
❌ Gradle check result for 5c2f141: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Also replace the eager cross-project task reference to :libs:agent-sm:agent with Gradle-idiomatic patterns: - Add a consumable agentDist configuration in the agent project that publishes the prepareAgent output directory as an artifact with a Category attribute. - Add a matching resolvable agent configuration in the distribution subprojects to consume it via normal dependency resolution. - Replace direct task references (project.prepareAgent, project.jar) with lazy alternatives: tasks.named() for task providers, lazy GStrings for deferred path resolution, and closure-based dependsOn. This removes the need for an evaluationDependsOn call which forced the agent project to be configured before the distribution project, violating Gradle best practices around project isolation and configuration-time coupling. Signed-off-by: Andrew Ross <andrross@amazon.com>
5c2f141 to
92705e1
Compare
|
Persistent review updated to latest commit 92705e1 |
|
❌ Gradle check result for 92705e1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 92705e1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 92705e1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 92705e1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20833 +/- ##
============================================
+ Coverage 73.31% 73.34% +0.02%
- Complexity 72248 72268 +20
============================================
Files 5795 5795
Lines 330044 330056 +12
Branches 47641 47643 +2
============================================
+ Hits 241975 242078 +103
+ Misses 68609 68568 -41
+ Partials 19460 19410 -50 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@reta Can you take a look again when you have a few minutes. Not urgent. I ran into a few other failures and had to make some additional tweaks. |
|
Persistent review updated to latest commit f580c32 |
f580c32 to
64d5bfc
Compare
Signed-off-by: Andriy Redko <drreta@gmail.com>
|
Persistent review updated to latest commit 64d5bfc |
64d5bfc to
2b13e2f
Compare
|
Persistent review updated to latest commit 2b13e2f |
|
❌ Gradle check result for 2b13e2f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Andrew Ross <andrross@amazon.com>
|
Persistent review updated to latest commit f2b556b |
* Upgrade to Gradle 9.4 Also replace the eager cross-project task reference to :libs:agent-sm:agent with Gradle-idiomatic patterns: - Add a consumable agentDist configuration in the agent project that publishes the prepareAgent output directory as an artifact with a Category attribute. - Add a matching resolvable agent configuration in the distribution subprojects to consume it via normal dependency resolution. - Replace direct task references (project.prepareAgent, project.jar) with lazy alternatives: tasks.named() for task providers, lazy GStrings for deferred path resolution, and closure-based dependsOn. This removes the need for an evaluationDependsOn call which forced the agent project to be configured before the distribution project, violating Gradle best practices around project isolation and configuration-time coupling. Signed-off-by: Andrew Ross <andrross@amazon.com> * Refactor the agent wiring to use configurations Signed-off-by: Andriy Redko <drreta@gmail.com> * Use .singleFile and lazy evaluation for agentJar Signed-off-by: Andrew Ross <andrross@amazon.com> --------- Signed-off-by: Andrew Ross <andrross@amazon.com> Signed-off-by: Andriy Redko <drreta@gmail.com> Co-authored-by: Andriy Redko <drreta@gmail.com>
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.